Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/abc.cpython-311.pyc

�

c��f����dZd�ZGd�de��ZGd�de��ZGd�de��Z	dd	lm	Z	m
Z
mZmZm
Z
mZmZmZGd
�de��Zn#e$rddlmZm	Z	d
e_YnwxYwd�ZGd�de���ZdS)z3Abstract Base Classes (ABCs) according to PEP 3119.c��d|_|S)aIA decorator indicating abstract methods.

    Requires that the metaclass is ABCMeta or derived from it.  A
    class that has a metaclass derived from ABCMeta cannot be
    instantiated unless all of its abstract methods are overridden.
    The abstract methods can be called using any of the normal
    'super' call mechanisms.  abstractmethod() may be used to declare
    abstract methods for properties and descriptors.

    Usage:

        class C(metaclass=ABCMeta):
            @abstractmethod
            def my_abstract_method(self, arg1, arg2, argN):
                ...
    T)�__isabstractmethod__)�funcobjs �*/opt/alt/python311/lib64/python3.11/abc.py�abstractmethodrs��"$(�G� ��N�c�&��eZdZdZdZ�fd�Z�xZS)�abstractclassmethodaA decorator indicating abstract classmethods.

    Deprecated, use 'classmethod' with 'abstractmethod' instead:

        class C(ABC):
            @classmethod
            @abstractmethod
            def my_abstract_classmethod(cls, ...):
                ...

    Tc�X��d|_t���|��dS�NT�r�super�__init__��self�callable�	__class__s  �rrzabstractclassmethod.__init__+�)���(,��%�
������"�"�"�"�"r��__name__�
__module__�__qualname__�__doc__rr�
__classcell__�rs@rr	r	�J�������
�
� ��#�#�#�#�#�#�#�#�#rr	c�&��eZdZdZdZ�fd�Z�xZS)�abstractstaticmethodaA decorator indicating abstract staticmethods.

    Deprecated, use 'staticmethod' with 'abstractmethod' instead:

        class C(ABC):
            @staticmethod
            @abstractmethod
            def my_abstract_staticmethod(...):
                ...

    Tc�X��d|_t���|��dSrrrs  �rrzabstractstaticmethod.__init__?rrrrs@rrr0rrrc��eZdZdZdZdS)�abstractpropertyz�A decorator indicating abstract properties.

    Deprecated, use 'property' with 'abstractmethod' instead:

        class C(ABC):
            @property
            @abstractmethod
            def my_abstract_property(self):
                ...

    TN)rrrrr�rrr r Ds"������
�
� ���rr �)�get_cache_token�	_abc_init�
_abc_register�_abc_instancecheck�_abc_subclasscheck�	_get_dump�_reset_registry�
_reset_cachesc�H��eZdZdZ�fd�Zd�Zd�Zd�Zd
d�Zd�Z	d	�Z
�xZS)�ABCMetaa�Metaclass 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()).
        c�`��t��j||||fi|��}t|��|S�N)r
�__new__r$)�mcls�name�bases�	namespace�kwargs�clsrs      �rr/zABCMeta.__new__is6���!�%�'�'�/�$��e�Y�I�I�&�I�I�C��c�N�N�N��Jrc�"�t||��S)z{Register a virtual subclass of an ABC.

            Returns the subclass, to allow usage as a class decorator.
            )r%�r5�subclasss  r�registerzABCMeta.registerns��
!��h�/�/�/rc�"�t||��S)z'Override for isinstance(instance, cls).)r&)r5�instances  r�__instancecheck__zABCMeta.__instancecheck__u���%�c�8�4�4�4rc�"�t||��S)z'Override for issubclass(subclass, cls).)r'r7s  r�__subclasscheck__zABCMeta.__subclasscheck__yr=rNc�P�td|j�d|j��|���tdt����|���t	|��\}}}}td|��|���td|��|���td|��|���td|��|���d	S)
z'Debug helper to print the ABC registry.zClass: �.)�filezInv. counter: z_abc_registry: z_abc_cache: z_abc_negative_cache: z_abc_negative_cache_version: N)�printrrr#r()r5rB�
_abc_registry�
_abc_cache�_abc_negative_cache�_abc_negative_cache_versions      r�_dump_registryzABCMeta._dump_registry}s����?�C�N�?�?�S�-=�?�?�d�K�K�K�K��6�?�#4�#4�6�6�T�B�B�B�B�,5�c�N�N�
*�]�J�(;�
(��5�M�5�5�D�A�A�A�A��/��/�/�d�;�;�;�;��A�*=�A�A��M�M�M�M��Q�2M�Q�Q��
�
�
�
�
�
rc�$�t|��dS)z.Clear the registry (for debugging or testing).N)r)�r5s r�_abc_registry_clearzABCMeta._abc_registry_clear�s���C� � � � � rc�$�t|��dS)z,Clear the caches (for debugging or testing).N)r*rJs r�_abc_caches_clearzABCMeta._abc_caches_clear�s���#�����rr.)rrrrr/r9r<r?rHrKrMrrs@rr,r,\s��������	�	�	�	�	�	�	�
	0�	0�	0�	5�	5�	5�	5�	5�	5�
	�
	�
	�
	�	!�	!�	!�	�	�	�	�	�	�	rr,)r,r#�abcc��t|d��s|St��}|jD]M}t|dd��D]9}t||d��}t|dd��r|�|���:�N|j���D]+\}}t|dd��r|�|���,t|��|_|S)a�Recalculate the set of abstract methods of an abstract class.

    If a class has had one of its abstract methods implemented after the
    class was created, the method will not be considered implemented until
    this function is called. Alternatively, if a new abstract method has been
    added to the class, it will only be considered an abstract method of the
    class after this function is called.

    This function should be called before any use is made of the class,
    usually in class decorators that add methods to the subject class.

    Returns cls, to allow usage as a class decorator.

    If cls is not an instance of ABCMeta, does nothing.
    �__abstractmethods__r!NrF)	�hasattr�set�	__bases__�getattr�add�__dict__�items�	frozensetrP)r5�	abstracts�sclsr1�values     r�update_abstractmethodsr\�s��� �3�-�.�.���
����I��
�$�$���D�"7��<�<�	$�	$�D��C��t�,�,�E��u�4�e�<�<�
$��
�
�d�#�#�#��	$�
�|�)�)�+�+� � ���e��5�0�%�8�8�	 ��M�M�$�����'�	�2�2�C���Jrc��eZdZdZdZdS)�ABCzVHelper class that provides a standard way to create an ABC using
    inheritance.
    r!N)rrrr�	__slots__r!rrr^r^�s���������I�I�Irr^)�	metaclassN)rr�classmethodr	�staticmethodr�propertyr �_abcr#r$r%r&r'r(r)r*�typer,�ImportError�_py_abcrr\r^r!rr�<module>rhs���:�9����*#�#�#�#�#�+�#�#�#�(#�#�#�#�#�<�#�#�#�(
 �
 �
 �
 �
 �x�
 �
 �
 � ;�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�3�3�3�3�3�$�3�3�3�3��	����0�0�0�0�0�0�0�0��G��������t#�#�#�L�����G������s�A�A+�*A+

Hacked By AnonymousFox1.0, Coded By AnonymousFox