o
`wiz @ s d Z dd ZG dd deZG dd deZG dd deZzd d
lm Z m
Z
mZmZm
Z
mZmZmZ W n eyH d dlmZm Z de_Y n w G d
d deZdd ZG dd dedZdS )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 /usr/lib/python3.10/abc.pyabstractmethod s r c $ e Zd ZdZdZ fddZ ZS )abstractclassmethoda A decorator indicating abstract classmethods.
Deprecated, use 'classmethod' with 'abstractmethod' instead:
class C(ABC):
@classmethod
@abstractmethod
def my_abstract_classmethod(cls, ...):
...
Tc d|_ t | d S NTr super__init__selfcallable __class__r r r + zabstractclassmethod.__init____name__
__module____qualname____doc__r r
__classcell__r r r r r r c r )abstractstaticmethoda A decorator indicating abstract staticmethods.
Deprecated, use 'staticmethod' with 'abstractmethod' instead:
class C(ABC):
@staticmethod
@abstractmethod
def my_abstract_staticmethod(...):
...
Tc r r r
r
r r r r ? r zabstractstaticmethod.__init__r r r r r r 0 r r c @ e Zd ZdZdZdS )abstractpropertyzA 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 fddZdd Zdd Zdd ZdddZd
d Z dd Z
ZS )r&