OwlCyberSecurity - MANAGER
Edit File: _py_abc.cpython-38.opt-1.pyc
U ����e5d-����������������������@���s(���d�dl�mZ�dd��ZG�dd��de�ZdS�)�����)�WeakSetc�������������������C���s���t�jS�)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��r���r����/usr/lib64/python3.8/_py_abc.py�get_cache_token���s����r���c�����������������������sV���e�Zd�ZdZdZ��fdd�Zdd��Zddd �Zd d��Zdd ��Z dd��Z dd��Z���ZS�)r���ah��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()). r���c���������� ���������s����t���j|�|||f|�}dd��|���D��}|D�]:}t|dt���D�]&}t||d��}t|dd�r>|�|��q>q,t|�|_t��|_ t��|_ t��|_tj |_|S�)Nc�����������������S���s ���h�|�]\}}t�|d�d�r|�qS�)�__isabstractmethod__F)�getattr)�.0�name�valuer���r���r���� <setcomp>&���s����z"ABCMeta.__new__.<locals>.<setcomp>�__abstractmethods__r���F)�super�__new__�itemsr ����set�add� frozensetr���r���� _abc_registry� _abc_cache�_abc_negative_cacher���r����_abc_negative_cache_version) �mclsr����bases� namespace�kwargs�clsZ abstracts�baser����� __class__r���r���r���#���s����� zABCMeta.__new__c�����������������C���sP���t�|t�std��t||��r |S�t|�|�r2td��|�j�|��t�jd7��_|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�RuntimeErrorr���r���r���r���)r����subclassr���r���r����register6���s���� zABCMeta.registerNc�����������������C���s|���t�d|�j��d|�j���|d��t�dt�����|d��|�jD�]@}|�d�r6t|�|�}t|t�r`t |�}t�|��d|��|d��q6dS�)z'Debug helper to print the ABC registry.zClass: �.)�filezInv. counter: Z_abc_z: N) �print� __module__�__qualname__r����__dict__� startswithr ���r"���r���r���)r���r*���r���r���r���r���r����_dump_registryH���s���� zABCMeta._dump_registryc�����������������C���s���|�j�����dS�)z.Clear the registry (for debugging or testing).N)r����clear�r���r���r���r����_abc_registry_clearS���s����zABCMeta._abc_registry_clearc�����������������C���s���|�j�����|�j����dS�)z,Clear the caches (for debugging or testing).N)r���r1���r���r2���r���r���r����_abc_caches_clearW���s���� zABCMeta._abc_caches_clearc��������������������sb���|j�}|��jkrdS�t|�}||krH��jtjkr>|��jkr>dS����|�S�t��fdd�||fD���S�)z'Override for isinstance(instance, cls).TFc�����������������3���s���|�]}����|�V��qd�S�)N)�__subclasscheck__)r ����cr2���r���r���� <genexpr>j���s�����z,ABCMeta.__instancecheck__.<locals>.<genexpr>) r ���r���r#���r���r���r���r���r5����any)r����instancer'���Zsubtyper���r2���r����__instancecheck__\���s���� �� zABCMeta.__instancecheck__c�����������������C���s��t�|t�std��||�jkr dS�|�jtjk�r>t��|�_tj|�_n||�jkrLdS�|�� |�}|t k r�|rp|�j�|��n|�j�|��|S�|�t|dd�kr�|�j�|��dS�|�j D�] }t||�r�|�j�|���dS�q�|����D�] }t||�r�|�j�|���dS�q�|�j�|��dS�)z'Override for issubclass(subclass, cls).z"issubclass() arg 1 must be a classTF�__mro__r���)r"���r#���r$���r���r���r���r���r���r����__subclasshook__�NotImplementedr���r ���r���r%����__subclasses__)r���r'����okZrclsZsclsr���r���r���r5���l���s8���� zABCMeta.__subclasscheck__)N) �__name__r,���r-����__doc__r���r���r(���r0���r3���r4���r:���r5���� __classcell__r���r���r���r���r������s��� r���N)Z_weakrefsetr���r���r#���r���r���r���r���r����<module>���s���