grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jzã@sÀdZdd„ZGdd„deƒZGdd„deƒZGdd„deƒZzd d lm Z m Z m Z m Z m Z mZmZmZWneyHd d lmZm Z d e_Yn wGd d„deƒZdd„ZGdd„ded�ZdS)z3Abstract Base Classes (ABCs) according to PEP 3119.cCs 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/python310/lib64/python3.10/abc.pyÚabstractmethodsrcó$eZdZdZdZ‡fdd„Z‡ZS)ÚabstractclassmethodaA decorator indicating abstract classmethods. Deprecated, use 'classmethod' with 'abstractmethod' instead: class C(ABC): @classmethod @abstractmethod def my_abstract_classmethod(cls, ...): ... Tcód|_tƒ |¡dS©NT©rÚsuperÚ__init__©ÚselfÚcallable©Ú __class__rrr +ózabstractclassmethod.__init__©Ú__name__Ú __module__Ú __qualname__Ú__doc__rr Ú __classcell__rrrrró rcr)ÚabstractstaticmethodaA decorator indicating abstract staticmethods. Deprecated, use 'staticmethod' with 'abstractmethod' instead: class C(ABC): @staticmethod @abstractmethod def my_abstract_staticmethod(...): ... Tcrr r r rrrr ?rzabstractstaticmethod.__init__rrrrrr0rrc@óeZdZdZdZdS)ÚabstractpropertyzùA decorator indicating abstract properties. Deprecated, use 'property' with 'abstractmethod' instead: class C(ABC): @property @abstractmethod def my_abstract_property(self): ... TN)rrrrrrrrrrDs ré)Úget_cache_tokenÚ _abc_initÚ _abc_registerÚ_abc_instancecheckÚ_abc_subclasscheckÚ _get_dumpÚ_reset_registryÚ _reset_caches)ÚABCMetarÚabccsReZdZdZ‡fdd„Zdd„Zdd„Zdd „Zdd d „Zd d„Z dd„Z ‡Z S)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&tƒj||||fi|¤Ž}t|ƒ|S©N)r Ú__new__r)ÚmclsÚnameÚbasesÚ namespaceÚkwargsÚclsrrrr)iszABCMeta.__new__cCó t||ƒS)z{Register a virtual subclass of an ABC. Returns the subclass, to allow usage as a class decorator. )r ©r/ÚsubclassrrrÚregisterns zABCMeta.registercCr0)z'Override for isinstance(instance, cls).)r!)r/ÚinstancerrrÚ__instancecheck__uó zABCMeta.__instancecheck__cCr0)z'Override for issubclass(subclass, cls).)r"r1rrrÚ__subclasscheck__yr6zABCMeta.__subclasscheck__NcCsŒtd|j›d|j›�|d�tdtƒ›�|d�t|ƒ\}}}}td|›�|d�td|›�|d�td|›�|d�td|›�|d�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)Úprintrrrr#)r/r9Ú _abc_registryÚ _abc_cacheÚ_abc_negative_cacheÚ_abc_negative_cache_versionrrrÚ_dump_registry}sÿ  ÿzABCMeta._dump_registrycCó t|ƒdS)z.Clear the registry (for debugging or testing).N)r$©r/rrrÚ_abc_registry_clear‰ó zABCMeta._abc_registry_clearcCr@)z,Clear the caches (for debugging or testing).N)r%rArrrÚ_abc_caches_clear�rCzABCMeta._abc_caches_clearr() rrrrr)r3r5r7r?rBrDrrrrrr&\s   r&cCsŒt|dƒs|Stƒ}|jD]}t|ddƒD]}t||dƒ}t|ddƒr(| |¡qq |j ¡D]\}}t|ddƒr>| |¡q/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__rNrF) ÚhasattrÚsetÚ __bases__ÚgetattrÚaddÚ__dict__ÚitemsÚ frozensetrE)r/Ú abstractsÚsclsr+ÚvaluerrrÚupdate_abstractmethods’s     €ý  € rQc@r)ÚABCzVHelper class that provides a standard way to create an ABC using inheritance. rN)rrrrÚ __slots__rrrrrR¸srR)Ú metaclassN)rrÚ classmethodrÚ staticmethodrÚpropertyrÚ_abcrrr r!r"r#r$r%Ú ImportErrorZ_py_abcr&rÚtyperQrRrrrrÚs,  þ6&