????
Your IP : 3.142.201.19
�
�X ��[�v��,�ddlmZd�ZGd�de�Zy)�)�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/python312/lib64/python3.12/_py_abc.py�get_cache_tokenr
s���,�,�,rc�L��eZdZdZdZ�fd�Zd�Zd
d�Zd�Zd�Z d�Z
d �Z�xZS)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� |�||||fi|��}|j�D��chc]\}}t|dd�r|��}}}|D]H}t|dt ��D].}t||d�}t|dd�s�|j|��0�Jt
|�|_t�|_ t�|_
t�|_tj|_|Scc}}w)N�__isabstractmethod__F�__abstractmethods__)�super�__new__�items�getattr�set�add� frozensetrr�
_abc_registry�
_abc_cache�_abc_negative_cacherr�_abc_negative_cache_version)
�mcls�name�bases� namespace�kwargs�cls�value� abstracts�base� __class__s
�r rzABCMeta.__new__#s�����g�o�d�D�%��E�f�E��)2���(9�G�(9���u���'=�u�E��(9� �G��D���&;�S�U�C����T�4�0���5�"8�%�@��M�M�$�'�D��
#,�I�"6���#�I��� ����")�)���*1�*K�*K��'��
��Gs�C%c���t|t�std��t||�r|St||�rt d��|j
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.register6sk��
�(�D�)��7�8�8��h��$��O��c�8�$��H�I�I������h�'��)�)�Q�.�)��rc�:�td|j�d|j��|��tdt���|��|jD]M}|jd�s�t
||�}t|t�rt|�}t|�d|��|���Oy)z'Debug helper to print the ABC registry.zClass: �.)�filezInv. counter: �_abc_z: N)
�print�
__module__�__qualname__r
�__dict__�
startswithrr&rr)rr/rr s r �_dump_registryzABCMeta._dump_registryHs���
�����'�q��)9�)9�(:�;�$�G�
���0�1�2��>��L�L�D����w�'���T�*���e�W�-���J�E����b�� �*��6�!rc�8�|jj�y)z.Clear the registry (for debugging or testing).N)r�clear�rs r �_abc_registry_clearzABCMeta._abc_registry_clearSs�������!rc�l�|jj�|jj�y)z,Clear the caches (for debugging or testing).N)rr8rr9s r �_abc_caches_clearzABCMeta._abc_caches_clearWs$�����������%�%�'rc���|j}|�jvryt|�}||ur=�jtj
k(r|�jvry�j|�St�fd�||fD��S)z'Override for isinstance(instance, cls).TFc3�@�K�|]}�j|����y�w�N)�__subclasscheck__)�.0�crs �r � <genexpr>z,ABCMeta.__instancecheck__.<locals>.<genexpr>js�����I�5H��3�(�(��+�5H�s�) r#rr'rrrrr@�any)r�instancer+�subtypes` r �__instancecheck__zABCMeta.__instancecheck__\s����%�%���s�~�~�%���x�.���h���/�/��1�1�2��C�3�3�3���(�(��2�2��I�h��5H�I�I�Irc� �t|t�std��||jvry|jt
jkr%t�|_t
j|_n||jvry|j|�}|tur<|r|jj|�|S|jj|�|S|t|dd�vr|jj|�y|jD]+}t||�s�|jj|�y|j�D]+}t||�s�|jj|�y|jj|�y)z'Override for issubclass(subclass, cls).z"issubclass() arg 1 must be a classTF�__mro__r)r&r'r(rrrrrr�__subclasshook__�NotImplementedrrrr)�__subclasses__)rr+�ok�rcls�sclss r r@zABCMeta.__subclasscheck__lsU���(�D�)��@�A�A��s�~�~�%���*�*�W�-N�-N�N�&-�i�C�#�.5�.O�.O�C�+�
��0�0�
0��
�
!�
!�(�
+��
�^�#�����"�"�8�,��I��'�'�+�+�H�5��I��'�(�I�r�2�2��N�N���x�(���%�%�D��(�D�)����"�"�8�,��&�
�&�&�(�D��(�D�)����"�"�8�,��)�
���#�#�H�-�rr?)
�__name__r2r3�__doc__rrr,r6r:r<rGr@�
__classcell__)r#s@r rrs4����$!"���&�$ 7�"�(�
J� 'rrN)�_weakrefsetrr
r'rrrr �<module>rTs���-�E�d�Er