Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_py_abc.cpython-314.pyc45 linesDownload Raw Back to __pycache__
1+
2��i-��.�^RIHtRt!RR]4tR#)�)�WeakSetc�"�\P#)z�Returns the current ABC cache token.3 4The token is an opaque object (supporting equality testing) identifying the5current version of the ABC cache for virtual subclasses. The token changes6with every call to ``register()`` on any ABC.7)�ABCMeta�_abc_invalidation_counter���Lib\_py_abc.py�get_cache_tokenr8s���,�,�,rc�baa�]tRt^toRt^tV3RltRtR9RltRt	Rt10RtRtR	t
VtV;t#)ra@Metaclass for defining Abstract Base Classes (ABCs).11 12Use this metaclass to create an ABC.  An ABC can be subclassed13directly, and then acts as a mix-in class.  You can also register14unrelated concrete classes (even built-in classes) and unrelated15ABCs as 'virtual subclasses' -- these and their descendants will16be considered subclasses of the registering ABC by the built-in17issubclass() function, but the registering ABC won't show up in18their MRO (Method Resolution Order) nor will method19implementations defined by the registering ABC be callable (not20even via super()).21c	��<�\S	V`!WW#3/VBpVP4UUu0uFwr\VRR4'gKVkK	pppVFQp\VR\	44F5p\WQR4p\VRR4'gK$VPV4K7	KS	\
V4Vn\4Vn	\4Vn22\4Vn\PVnV#uuppi)�__isabstractmethod__F�__abstractmethods__N)�super�__new__�items�getattr�set�add�	frozensetrr�
_abc_registry�23_abc_cache�_abc_negative_cacherr�_abc_negative_cache_version)24�mcls�name�bases�	namespace�kwargs�cls�value�	abstracts�base�	__class__s25"""",    �r	r�ABCMeta.__new__#s�����g�o�d�%�E�f�E��)2���(9�G�(9�����'=�u�E��T�(9�	�G��D���&;�S�U�C����4�0���5�"8�%�@�@��M�M�$�'�D��26#,�I�"6���#�I��� ����")�)���*1�*K�*K��'��27��Gs�C7�C7c��\V\4'g\R4h\W4'dV#\W4'd\	R4hVP28P
V4\;P^,
unV#)zcRegister a virtual subclass of an ABC.29 30Returns the subclass, to allow usage as a class decorator.31zCan only register classesz'Refusing to create an inheritance cycle)	�32isinstance�type�	TypeError�33issubclass�RuntimeErrorrrrr)r�subclasss&&r	�register�ABCMeta.register6sp��34�(�D�)�)��7�8�8��h�$�$��O��c�$�$��H�I�I������h�'��)�)�Q�.�)��rc�Z�\RVPRVP2VR7\R\42VR7VPF[pVPR4'gK\
W4p\V\4'd\V4p\VRV:2VR7K]	R#)z'Debug helper to print the ABC registry.zClass: �.)�filezInv. counter: �_abc_z: N)35�print�36__module__�__qualname__r37�__dict__�38startswithrr&rr)rr0rr s&&  r	�_dump_registry�ABCMeta._dump_registryHs���
�����'�q��)9�)9�(:�;�$�G�
���0�1�2��>��L�L�D����w�'�'���*���e�W�-�-���J�E����b��	�*��6�!rc�:�VPP4R#)z.Clear the registry (for debugging or testing).N)r�clear�rs&r	�_abc_registry_clear�ABCMeta._abc_registry_clearSs�������!rc�n�VPP4VPP4R#)z,Clear the caches (for debugging or testing).N)rr:rr;s&r	�_abc_caches_clear�ABCMeta._abc_caches_clearWs$�����������%�%�'rc�`a�VPpVSP9dR#\V4pW2JdDSP\P398XdVSP9dR#SPV4#\;QJd V3RlW#34F'gKR#	R#!V3RlW#344#)z'Override for isinstance(instance, cls).TFc3�F<"�TFpSPV4x�K	R#5i�N)�__subclasscheck__)�.0�crs& �r	�	<genexpr>�,ABCMeta.__instancecheck__.<locals>.<genexpr>js!����I�5H��3�(�(��+�+�5H�s�!)	r#rr'rrrrrD�any)r�instancer+�subtypesf&  r	�__instancecheck__�ABCMeta.__instancecheck__\s�����%�%���s�~�~�%���x�.�����/�/��1�1�2��C�3�3�3���(�(��2�2��s�I�h�5H�I�s�s�I�s�I�s�I�h�5H�I�I�Irc��\V\4'g\R4hWP9dR#VP\40P8d&\4Vn\41PVnMWP9dR#VPV4pV\Jd[\V\4'gQhV'dVPPV4V#VPPV4V#V\VRR49dVPPV4R#VPF2p\W4'gKVPPV4R#	VP!4F2p\W4'gKVPPV4R#	VPPV4R#)z'Override for issubclass(subclass, cls).z"issubclass() arg 1 must be a classTF�__mro__r)r&r'r(rrrrrr�__subclasshook__�NotImplemented�boolrrrr)�__subclasses__)rr+�ok�rcls�sclss&&   r	rD�ABCMeta.__subclasscheck__lsi���(�D�)�)��@�A�A��~�~�%���*�*�W�-N�-N�N�&-�i�C�#�.5�.O�.O�C�+�
�0�0�
0��
�
!�
!�(�
+��
�^�#��b�$�'�'�'�'�����"�"�8�,��I��'�'�+�+�H�5��I��'�(�I�r�2�2��N�N���x�(���%�%�D��(�)�)����"�"�8�,��&�42�&�&�(�D��(�)�)����"�"�8�,��)�43	���#�#�H�-�rrrC)�__name__r3r4�__firstlineno__�__doc__rrr,r7r<r?rLrD�__static_attributes__�__classdictcell__�
__classcell__)r#�
__classdict__s@@r	rrs;�����$!"���&�$	7�"�(�44J� '�'rrN)�_weakrefsetrr45r'rrrr	�<module>r`s���-�E�d�Er
codekingpro/portable-devtools · Team Ai