Your IP : 3.147.78.185


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/_py_abc.cpython-312.opt-2.pyc

�

�Q�f-��,�ddlmZd�ZGd�de�Zy)�)�WeakSetc�$�	tjS�N)�ABCMeta�_abc_invalidation_counter���./opt/alt/python312/lib64/python3.12/_py_abc.py�get_cache_tokenrs����,�,�,r	c�J��eZdZ	dZ�fd�Zd�Zd	d�Zd�Zd�Zd�Z	d�Z
�xZS)
rrc	����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)NzCan only register classesz'Refusing to create an inheritance cycle�)	�
isinstance�type�	TypeError�
issubclass�RuntimeErrorrrrr)r �subclasss  r
�registerzABCMeta.register6sp��	��(�D�)��7�8�8��h��$��O��c�8�$��H�I�I������h�'��)�)�Q�.�)��r	c�<�	td|j�d|j��|��tdt���|��|jD]M}|jd�s�t
||�}t|t�rt|�}t|�d|��|���Oy)NzClass: �.)�filezInv. counter: �_abc_z: )
�print�
__module__�__qualname__r�__dict__�
startswithrr'rr)r r0rr!s    r
�_dump_registryzABCMeta._dump_registryHs���5�
�����'�q��)9�)9�(:�;�$�G�
���0�1�2��>��L�L�D����w�'���T�*���e�W�-���J�E����b��	�*��6�!r	c�:�	|jj�yr)r�clear�r s r
�_abc_registry_clearzABCMeta._abc_registry_clearSs��<������!r	c�n�	|jj�|jj�yr)rr9rr:s r
�_abc_caches_clearzABCMeta._abc_caches_clearWs'��:����������%�%�'r	c���	|j}|�jvryt|�}||ur=�jtj
k(r|�jvry�j|�St�fd�||fD��S)NTFc3�@�K�|]}�j|����y�wr)�__subclasscheck__)�.0�cr s  �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����5��%�%���s�~�~�%���x�.���h���/�/��1�1�2��C�3�3�3���(�(��2�2��I�h��5H�I�I�Ir	c�"�	t|t�std��||jvry|jt
jkr%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)Nz"issubclass() arg 1 must be a classTF�__mro__r)r'r(r)rrrrrr�__subclasshook__�NotImplementedrrrr*�__subclasses__)r r,�ok�rcls�sclss     r
r@zABCMeta.__subclasscheck__lsX��5��(�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�-�r	r)�__name__r3r4rrr-r7r;r=rGr@�
__classcell__)r$s@r
rrs4����$!"���&�$	7�"�(�
J� 'r	rN)�_weakrefsetrrr(rrr	r
�<module>rSs���-�E�d�Er	

?>