ok
Direktori : /proc/thread-self/root/opt/alt/python39/lib64/python3.9/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python39/lib64/python3.9/__pycache__/abc.cpython-39.pyc |
a ���e8 � @ s� d Z dd� ZG dd� de�ZG dd� de�ZG dd� de�Zz,d d lm Z m Z mZmZm Z mZmZmZ W n( ey� d dlmZm Z de_Y n0 G d d� de�ZG dd� ded�ZdS )z3Abstract Base Classes (ABCs) according to PEP 3119.c C s d| _ | S )a< A 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, ...): ... T)�__isabstractmethod__)�funcobj� r �(/opt/alt/python39/lib64/python3.9/abc.py�abstractmethod s r c s$ e Zd ZdZdZ� fdd�Z� ZS )�abstractclassmethoda A decorator indicating abstract classmethods. Deprecated, use 'classmethod' with 'abstractmethod' instead: class C(ABC): @classmethod @abstractmethod def my_abstract_classmethod(cls, ...): ... Tc s d|_ t� �|� d S �NT�r �super�__init__��self�callable�� __class__r r r + s zabstractclassmethod.__init__��__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s r c s$ e Zd ZdZdZ� fdd�Z� ZS )�abstractstaticmethoda A decorator indicating abstract staticmethods. Deprecated, use 'staticmethod' with 'abstractmethod' instead: class C(ABC): @staticmethod @abstractmethod def my_abstract_staticmethod(...): ... Tc s d|_ t� �|� d S r r r r r r r ? s zabstractstaticmethod.__init__r r r r r r 0 s r c @ s e Zd ZdZdZdS )�abstractpropertyz�A decorator indicating abstract properties. Deprecated, use 'property' with 'abstractmethod' instead: class C(ABC): @property @abstractmethod def my_abstract_property(self): ... TN)r r r r r r r r r r D s r � )�get_cache_token� _abc_init� _abc_register�_abc_instancecheck�_abc_subclasscheck� _get_dump�_reset_registry� _reset_caches)�ABCMetar �abcc sR e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zddd�Zd d� Z dd� Z � ZS )r! a� 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 s&