Viewing File: /opt/alt/python313/lib64/python3.13/__pycache__/types.cpython-313.pyc

�

?,bi�+��b�SrSSKrSr\"\5r\"S5r\"\R5r\"\R5r	\"\R5rSr\"\"55r
Sr\"\"55rSr\"5r\"\5r\R%5 Sr\"5r\"\5r"S	S
5r\"\"5R,5r\"\5r\"/R45r\"\R:5r\"\"5R>5r \"\!RD5r#\"\$RS5r%\"\5r&\'e!\'a8r(\"\(RR5r*\"\(RRRV5r,Sr(C(OSr(C(ff=f\"\R5r-\"\R\5r/CCCCCCCSSjr0S
r1SSjr2Sr3Sr4"SS5r5"SS5r6Sr7\"\8\95r:\"\9\!-5r;\"\<5r=\"S5r>\"\?5r@SrA\B"5Vs/sHoSSS:wdM
UPM Os snfsnrC\CS/-
rCg)zO
Define names for built-in types that aren't directly accessible as a builtin.
�Nc��g�N�r��,/opt/alt/python313/lib64/python3.13/types.py�_frs��$rc��grrrrr�<lambda>r
s��$rc�2^�SmU4SjnURS$)N�c�>�grr)�as�r�f�_cell_factory.<locals>.fs��rr)�__closure__)rrs @r�
_cell_factoryrs���	�A���=�=���rc#�# �Sv� g7f)Nrrrrr�_grs
���
�G�s�c��# �g7frrrrr�_crs����s�c�# �S7v� g7frrrrr�_agr#s���	�s�	c��\rSrSrSrSrg)�_C�(c��grr��selfs r�_m�_C._m)s��$rrN)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__rrrrr(s��rr�fromkeysc�p�[U5n[XU5upVnUbU"U5 XALaXS'U"XU40UD6$)zBCreate a class object dynamically using the appropriate metaclass.�__orig_bases__)�
resolve_bases�
prepare_class)�name�bases�kwds�	exec_body�resolved_bases�meta�nss       r�	new_classr2CsJ��"�5�)�N�"�4��>�N�D�d����"�
��"�$�����b�1�D�1�1rc�b�[U5nSnSn[U5H~upE[U[5(aM[	US5(dM/URU5nSn[U[5(d[S5eXaXC-XC-S-&U[U5S-
-
nM� U(dU$[
U5$)z8Resolve MRO entries dynamically as specified by PEP 560.Fr�__mro_entries__Tz#__mro_entries__ must return a tupler)	�list�	enumerate�
isinstance�type�hasattrr4�tuple�	TypeError�len)r,�	new_bases�updated�shift�i�base�new_bases       rr)r)Ms����U��I��G�
�E��U�#����d�D�!�!���t�.�/�/���'�'��.�����(�E�*�*��A�B�B�+3�a�g�a�g�a�i�(��S��]�Q�&�&�E�$�������rc�"�Uc0nO[U5nSU;aURS5nOU(a[US5nO[n[U[5(a[	X15n[US5(aUR"X40UD6nO0nX4U4$)a^Call the __prepare__ method of the appropriate metaclass.

Returns (metaclass, namespace, kwds) as a 3-tuple

*metaclass* is the appropriate metaclass
*namespace* is the prepared class namespace
*kwds* is an updated copy of the passed in kwds argument with any
'metaclass' entry removed. If no kwds argument is passed in, this will
be an empty dict.
�	metaclassr�__prepare__)�dict�popr8r7�_calculate_metar9rE)r+r,r-r0r1s     rr*r*bs����|����D�z���d���x�x��$�����a��>�D��D��$�����t�+���t�]�#�#�
�
�
�d�
2�T�
2��
���T�>�rc��UnUH=n[U5n[X$5(aM [XB5(aUnM4[S5e U$)z%Calculate the most derived metaclass.zxmetaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases)r8�
issubclassr;)r0r,�winnerrA�	base_metas     rrHrH�sT��
�F�����J�	��f�(�(���i�(�(��F���>�?�	?���Mrc��URRSUR5$![a$ [	S[U5R<35Sef=f)a�Return the class's "original" bases prior to modification by `__mro_entries__`.

Examples::

    from typing import TypeVar, Generic, NamedTuple, TypedDict

    T = TypeVar("T")
    class Foo(Generic[T]): ...
    class Bar(Foo[int], float): ...
    class Baz(list[str]): ...
    Eggs = NamedTuple("Eggs", [("a", int), ("b", str)])
    Spam = TypedDict("Spam", {"a": int, "b": str})

    assert get_original_bases(Bar) == (Foo[int], float)
    assert get_original_bases(Baz) == (list[str],)
    assert get_original_bases(Eggs) == (NamedTuple,)
    assert get_original_bases(Spam) == (TypedDict,)
    assert get_original_bases(int) == (object,)
r(z"Expected an instance of type, not N)�__dict__�get�	__bases__�AttributeErrorr;r8r!)�clss r�get_original_basesrS�sW��(��|�|��� 0�#�-�-�@�@�����0��c��1C�1C�0F�G�
��	��s	�%(�.Ac�J�\rSrSrSrSSjrS
SjrSrSrSr	S	r
S
rSrg)�DynamicClassAttribute�a�Route attribute access on a class to __getattr__.

This is a descriptor, used to define attributes that act differently when
accessed through an instance and through a class.  Instance access remains
normal, but access to an attribute through a class will be routed to the
class's __getattr__ method; this is done by raising AttributeError.

This allows one to have properties active on an instance, and have virtual
attributes on the class with the same name.  (Enum used this between Python
versions 3.4 - 3.9 .)

Subclass from this to use a different method of accessing virtual attributes
and still be treated properly by the inspect module. (Enum uses this since
Python 3.10 .)

Nc��XlX lX0lU=(d URUlUSLUl[[
USS55Ulg)N�__isabstractmethod__F)�fget�fset�fdel�__doc__�
overwrite_doc�bool�getattrrX)rrYrZr[�docs     r�__init__�DynamicClassAttribute.__init__�sD���	��	��	��*�d�l�l��� �D�[���$(���7M�u�)U�$V��!rc��UcUR(aU$[5eURc[S5eURU5$)Nzunreadable attribute)rXrQrY)r�instance�
ownerclasss   r�__get__�DynamicClassAttribute.__get__�sD�����(�(��� �"�"�
�Y�Y�
� �!7�8�8��y�y��"�"rc�V�URc[S5eURX5 g)Nzcan't set attribute)rZrQ)rrd�values   r�__set__�DynamicClassAttribute.__set__�s$���9�9�� �!6�7�7��	�	�(�"rc�V�URc[S5eURU5 g)Nzcan't delete attribute)r[rQ)rrds  r�
__delete__� DynamicClassAttribute.__delete__�s$���9�9�� �!9�:�:��	�	�(�rc���UR(aUROSn[U5"XRURU=(d UR5nURUlU$r)r]r\r8rZr[)rrY�fdoc�results    r�getter�DynamicClassAttribute.getter�sK��#�1�1�t�|�|�t���d��D�)�)�T�Y�Y��8L����M��#�1�1����
rc��[U5"URXRUR5nURUlU$r)r8rYr[r\r])rrZrqs   r�setter�DynamicClassAttribute.setter�s3���d��D�I�I�t�Y�Y����E��#�1�1����
rc��[U5"URURXR5nURUlU$r)r8rYrZr\r])rr[rqs   r�deleter�DynamicClassAttribute.deleter�s3���d��D�I�I�t�y�y�$���E��#�1�1����
r)r\rXr[rYrZr])NNNNr)
r!r"r#r$r\rarfrjrmrrrurxr%rrrrUrU�s+��� W�#�#�
�
��
rrUc��\rSrSrSrSrSrSr\S5r	\S5r
\S5r\S	5r\	r
\
r\r\rS
rSr\rSrg
)�_GeneratorWrapper��c��XlUR[LUl[	USS5Ul[	USS5Ulg)Nr!r#)�_GeneratorWrapper__wrapped�	__class__�
GeneratorType�_GeneratorWrapper__isgenr_r!r#)r�gens  rra�_GeneratorWrapper.__init__�s8�����}�}�
�5�����Z��6��
�#�C���>��rc�8�URRU5$r)r~�send)r�vals  rr��_GeneratorWrapper.send�s���~�~�"�"�3�'�'rc�<�URR"U/UQ76$r)r~�throw)r�tp�rests   rr��_GeneratorWrapper.throw�s���~�~�#�#�B�.��.�.rc�6�URR5$r)r~�closers rr��_GeneratorWrapper.close�s���~�~�#�#�%�%rc�.�URR$r)r~�gi_coders rr��_GeneratorWrapper.gi_code�s���~�~�%�%�%rc�.�URR$r)r~�gi_framers rr��_GeneratorWrapper.gi_frame�s���~�~�&�&�&rc�.�URR$r)r~�
gi_runningrs rr��_GeneratorWrapper.gi_runnings���~�~�(�(�(rc�.�URR$r)r~�gi_yieldfromrs rr��_GeneratorWrapper.gi_yieldfroms���~�~�*�*�*rc�,�[UR5$r)�nextr~rs r�__next__�_GeneratorWrapper.__next__s���D�N�N�#�#rc�@�UR(aUR$U$r)r�r~rs r�__iter__�_GeneratorWrapper.__iter__s���<�<��>�>�!��r)�__isgenr!r#�	__wrappedN)r!r"r#r$rar�r�r��propertyr�r�r�r��cr_code�cr_frame�
cr_running�cr_awaitr�r��	__await__r%rrrr{r{�s���?�
(�/�&�
�&��&�
�'��'�
�)��)�
�+��+��G��H��J��H�$���Irr{c�^^�[T5(d[S5eTR[Lay[	TSS5R[
La[TRRnUS-(aT$US-(a/TRnURURS-S9TlT$SSK	nSSK
mURT5UU4S	j5nU$)
z2Convert regular generator function to a coroutine.z$types.coroutine() expects a callable�__code__Ni�� �)�co_flagsrc�&>�T"U0UD6nUR[Ld1UR[La URRS-(aU$[UTR5(a&[UTR5(d[U5$U$)Nr�)	r�
CoroutineTyper�r�r�r7�	Generator�	Coroutiner{)�args�kwargs�coro�_collections_abc�funcs   ��r�wrapped�coroutine.<locals>.wrapped4s|����T�$�V�$���N�N�m�+��N�N�m�+����0E�0E��0M��K��t�-�7�7�8�8��4�!1�!;�!;�<�<�%�T�*�*��r)�callabler;r�FunctionTyper_�CodeTyper�r��replace�	functoolsr��wraps)r�r��cor�r�r�s`    @r�	coroutiner�s�����D�>�>��>�?�?����,�&���j�$�'�1�1�X�=��=�=�)�)���e���K��d�?����B��J�J����e�0C�J�D�D�M��K����_�_�T����� �Nrc�n�US:XaSSKn[UR5$[S[<SU<35e)N�CapsuleTyperzmodule z has no attribute )�_socketr8�CAPIrQr!)r+r�s  r�__getattr__r�Ns5���}����G�L�L�!�!�
�7�8�,�.@���I�
J�Jrr�_r�)rNN)rN)Dr\�sysrr8r��
LambdaTyper�r�rN�MappingProxyType�implementation�SimpleNamespacer�CellTyperr�rr�r�r�AsyncGeneratorTyperr�
MethodTyper<�BuiltinFunctionType�append�BuiltinMethodType�objectra�WrapperDescriptorType�__str__�MethodWrapperType�str�join�MethodDescriptorTyperF�ClassMethodDescriptorType�
ModuleTyper;�exc�
__traceback__�
TracebackType�tb_frame�	FrameType�GetSetDescriptorType�__globals__�MemberDescriptorTyper2r)r*rHrSrUr{r�r5�int�GenericAlias�	UnionType�Ellipsis�EllipsisType�NoneType�NotImplemented�NotImplementedTyper��globals�__all__)�ns0r�<module>r�s=������B�x��
�,�
�
���������
�
�&���s�)�)�*���
�
�� ����R�T�
�
���T���R��
����
�
�	�e���#�Y����
�"�$�'�'�]�
��3�i������O���V�_�_�-�����)�)�*���C�H�H�~�� ����z�!:�;��
�#�Y�
�1�
�O���1���*�*�+�M��S�&�&�/�/�0�I��1���L�1�1�2���L�4�4�5����R��R��m�2��*�@�$�8<�<�~#�#�J1�f�D��I�����s��O�	��H�~����:���.�)��K��i�
0�i��R�a�5�C�<�1�i��
0���M�?��s$�9D;�;E9�.E4�4E9�H"�H"
Back to Directory File Manager