ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/_py_abc.cpython-311.pyc

�

�f-��4�ddlmZd�ZGd�de��ZdS)�)�WeakSetc��tjS)z�Returns the current ABC cache token.

    The token is an opaque object (supporting equality testing) identifying the
    current version of the ABC cache for virtual subclasses. The token changes
    with every call to ``register()`` on any ABC.
    )�ABCMeta�_abc_invalidation_counter���./opt/alt/python311/lib64/python3.11/_py_abc.py�get_cache_tokenr
s
���,�,rc�L��eZdZdZdZ�fd�Zd�Zdd�Zd�Zd�Z	d	�Z
d
�Z�xZS)rahMetaclass for defining Abstract Base Classes (ABCs).

    Use this metaclass to create an ABC.  An ABC can be subclassed
    directly, and then acts as a mix-in class.  You can also register
    unrelated concrete classes (even built-in classes) and unrelated
    ABCs as 'virtual subclasses' -- these and their descendants will
    be considered subclasses of the registering ABC by the built-in
    issubclass() function, but the registering ABC won't show up in
    their MRO (Method Resolution Order) nor will method
    implementations defined by the registering ABC be callable (not
    even via super()).
    rc����t��j||||fi|��}d�|���D��}|D]Y}t|dt	����D]9}t||d��}t|dd��r|�|���:�Zt
|��|_t��|_	t��|_
t��|_tj
|_|S)Nc�:�h|]\}}t|dd���|��S)�__isabstractmethod__F)�getattr)�.0�name�values   r	�	<setcomp>z"ABCMeta.__new__.<locals>.<setcomp>&sE��G�G�G�$��u���'=�u�E�E�G�T�G�G�Gr�__abstractmethods__rF)�super�__new__�itemsr�set�add�	frozensetrr�
_abc_registry�
_abc_cache�_abc_negative_cacherr�_abc_negative_cache_version)
�mclsr�bases�	namespace�kwargs�cls�	abstracts�baser�	__class__s
         �r	rzABCMeta.__new__#s����e�g�g�o�d�D�%��E�E�f�E�E��G�G�(1���(9�(9�G�G�G�	��	(�	(�D���&;�S�U�U�C�C�
(�
(����T�4�0�0���5�"8�%�@�@�(��M�M�$�'�'�'��
(�#,�I�"6�"6���#�I�I��� �����")�)�)���*1�*K��'��
rc��t|t��std���t||��r|St||��rt	d���|j�|��txjdz
c_|S)zsRegister a virtual subclass of an ABC.

        Returns the subclass, to allow usage as a class decorator.
        zCan only register classesz'Refusing to create an inheritance cycle�)	�
isinstance�type�	TypeError�
issubclass�RuntimeErrorrrrr)r#�subclasss  r	�registerzABCMeta.register6s���
�(�D�)�)�	9��7�8�8�8��h��$�$�	��O��c�8�$�$�	J��H�I�I�I�����h�'�'�'��)�)�Q�.�)�)��rNc�Z�td|j�d|j��|���tdt����|���|jD]a}|�d��rJt
||��}t|t��rt|��}t|�d|��|����bdS)z'Debug helper to print the ABC registry.zClass: �.)�filezInv. counter: �_abc_z: N)
�print�
__module__�__qualname__r
�__dict__�
startswithrr)rr)r#r2rrs    r	�_dump_registryzABCMeta._dump_registryHs���
�;���;�;��)9�;�;�$�G�G�G�G�
�2��0�0�2�2��>�>�>�>��L�	7�	7�D����w�'�'�
7���T�*�*���e�W�-�-�'���J�J�E���*�*��*�*��6�6�6�6��	7�	7rc�8�|j���dS)z.Clear the registry (for debugging or testing).N)r�clear�r#s r	�_abc_registry_clearzABCMeta._abc_registry_clearSs������!�!�!�!�!rc�j�|j���|j���dS)z,Clear the caches (for debugging or testing).N)rr;rr<s r	�_abc_caches_clearzABCMeta._abc_caches_clearWs1�����������%�%�'�'�'�'�'rc����|j}|�jvrdSt|��}||ur5�jtjkr|�jvrdS��|��St�fd�||fD����S)z'Override for isinstance(instance, cls).TFc3�B�K�|]}��|��V��dS�N)�__subclasscheck__)r�cr#s  �r	�	<genexpr>z,ABCMeta.__instancecheck__.<locals>.<genexpr>js1�����I�I��3�(�(��+�+�I�I�I�I�I�Ir)	r&rr*rrrrrC�any)r#�instancer.�subtypes`   r	�__instancecheck__zABCMeta.__instancecheck__\s�����%���s�~�%�%��4��x�.�.���h����/��1�2�2��C�3�3�3��u��(�(��2�2�2��I�I�I�I�h��5H�I�I�I�I�I�Irc�R�t|t��std���||jvrdS|jt
jkr%t��|_t
j|_n||jvrdS|�	|��}|turPt|t��sJ�|r|j�|��n|j�|��|S|t|dd��vr|j�|��dS|jD]/}t||��r|j�|��dS�0|���D]/}t||��r|j�|��dS�0|j�|��dS)z'Override for issubclass(subclass, cls).z"issubclass() arg 1 must be a classTF�__mro__r)r)r*r+rrrrrr�__subclasshook__�NotImplemented�boolrrrr,�__subclasses__)r#r.�ok�rcls�sclss     r	rCzABCMeta.__subclasscheck__ls����(�D�)�)�	B��@�A�A�A��s�~�%�%��4��*�W�-N�N�N�&-�i�i�C�#�.5�.O�C�+�+�
��0�
0�
0��5�
�
!�
!�(�
+�
+��
�^�#�#��b�$�'�'�'�'�'��
6���"�"�8�,�,�,�,��'�+�+�H�5�5�5��I��'�(�I�r�2�2�2�2��N���x�(�(�(��4��%�	�	�D��(�D�)�)�
���"�"�8�,�,�,��t�t�
��&�&�(�(�	�	�D��(�D�)�)�
���"�"�8�,�,�,��t�t�
�	��#�#�H�-�-�-��urrB)
�__name__r5r6�__doc__rrr/r9r=r?rIrC�
__classcell__)r&s@r	rrs����������$!"�������&���$	7�	7�	7�	7�"�"�"�(�(�(�
J�J�J� '�'�'�'�'�'�'rrN)�_weakrefsetrr
r*rrrr	�<module>rWsd��������-�-�-�E�E�E�E�E�d�E�E�E�E�Er

Zerion Mini Shell 1.0