ó
    F\hŠ  ã                   óÞ   • S r S r " S S\5      r " S S\5      r " S S\5      r SS	KJ	r	J
r
JrJrJrJrJrJr   " S
 S\5      rS r " S S\S9rg! \ a    SSKJrJ	r	  S\l         N$f = f)z3Abstract Base Classes (ABCs) according to PEP 3119.c                 ó   • SU l         U $ )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, arg1, arg2, argN):
            ...
T)Ú__isabstractmethod__)Úfuncobjs    Ú/usr/lib/python3.13/abc.pyÚabstractmethodr      s   € ð" $(€GÔ Ø€Nó    c                   ó0   ^ • \ rS rSrSrSrU 4S jrSrU =r$ )Úabstractclassmethodé   zìA decorator indicating abstract classmethods.

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

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

Tc                 ó2   >• SUl         [        TU ]	  U5        g ©NT©r   ÚsuperÚ__init__©ÚselfÚcallableÚ	__class__s     €r   r   Úabstractclassmethod.__init__+   ó   ø€ Ø(,ˆÔ%Ü‰Ñ˜Õ"r   © ©	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__Ú__classcell__©r   s   @r   r	   r	      ó   ø† ñ
ð  Ð÷#ó #r   r	   c                   ó0   ^ • \ rS rSrSrSrU 4S jrSrU =r$ )Úabstractstaticmethodé0   zëA decorator indicating abstract staticmethods.

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

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

Tc                 ó2   >• SUl         [        TU ]	  U5        g r   r   r   s     €r   r   Úabstractstaticmethod.__init__?   r   r   r   r   r   s   @r   r"   r"   0   r    r   r"   c                   ó   • \ rS rSrSrSrSrg)ÚabstractpropertyéD   zÝA decorator indicating abstract properties.

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

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

Tr   N)r   r   r   r   r   r   r   r   r   r   r'   r'   D   s   † ñ
ð  Ór   r'   é    )Úget_cache_tokenÚ	_abc_initÚ_abc_registerÚ_abc_instancecheckÚ_abc_subclasscheckÚ	_get_dumpÚ_reset_registryÚ_reset_cachesc                   óT   ^ • \ rS rSrSrU 4S jrS rS rS rSS jr	S r
S	 rS
rU =r$ )ÚABCMetaé\   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                óB   >• [         TU ]  " XX#40 UD6n[        U5        U$ ©N)r   Ú__new__r+   )ÚmclsÚnameÚbasesÚ	namespaceÚkwargsÚclsr   s         €r   r7   ÚABCMeta.__new__i   s$   ø€ Ü‘'’/ $¨eÑIÀ&ÑIˆCÜ�cŒNØˆJr   c                 ó   • [        X5      $ )zcRegister a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.
)r,   ©r=   Úsubclasss     r   ÚregisterÚABCMeta.registern   s   € ô
 ! Ó/Ð/r   c                 ó   • [        X5      $ )z'Override for isinstance(instance, cls).)r-   )r=   Úinstances     r   Ú__instancecheck__ÚABCMeta.__instancecheck__u   ó   € ä% cÓ4Ð4r   c                 ó   • [        X5      $ )z'Override for issubclass(subclass, cls).)r.   r@   s     r   Ú__subclasscheck__ÚABCMeta.__subclasscheck__y   rH   r   c                 ó  • [        SU R                   SU R                   3US9  [        S[        5        3US9  [	        U 5      u  p#nn[        SU< 3US9  [        SU< 3US9  [        SU< 3US9  [        SU< 3US9  g	)
z'Debug helper to print the ABC registry.zClass: Ú.)ÚfilezInv. counter: z_abc_registry: z_abc_cache: z_abc_negative_cache: z_abc_negative_cache_version: N)Úprintr   r   r*   r/   )r=   rN   Ú_abc_registryÚ
_abc_cacheÚ_abc_negative_cacheÚ_abc_negative_cache_versions         r   Ú_dump_registryÚABCMeta._dump_registry}   sœ   € ä�G˜CŸN™NÐ+¨1¨S×-=Ñ-=Ð,>Ð?ÀdÒKÜ�N¤?Ó#4Ð"5Ð6¸TÒBä,5°c«Nñ*ˆ]Ð(;Ø(Ü�O MÑ#4Ð5¸DÒAÜ�L ¡Ð/°dÒ;ÜÐ)Ð*=Ñ)@ÐAÈÒMÜÐ1Ð2MÑ1PÐQØór   c                 ó   • [        U 5        g)z.Clear the registry (for debugging or testing).N)r0   ©r=   s    r   Ú_abc_registry_clearÚABCMeta._abc_registry_clear‰   s
   € ä˜CÕ r   c                 ó   • [        U 5        g)z,Clear the caches (for debugging or testing).N)r1   rW   s    r   Ú_abc_caches_clearÚABCMeta._abc_caches_clear�   s
   € ä˜#Õr   r   r6   )r   r   r   r   r   r7   rB   rF   rJ   rT   rX   r[   r   r   r   s   @r   r3   r3   \   s0   ø† ñ	õ	ò
	0ò	5ò	5ô
	ò	!÷	ð 	r   r3   )r3   r*   Úabcc                 ó   • [        U S5      (       d  U $ [        5       nU R                   HH  n[        USS5       H4  n[        XS5      n[        USS5      (       d  M#  UR	                  U5        M6     MJ     U R
                  R                  5        H*  u  p4[        USS5      (       d  M  UR	                  U5        M,     [        U5      U l        U $ )as  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   Nr   F)	ÚhasattrÚsetÚ	__bases__ÚgetattrÚaddÚ__dict__ÚitemsÚ	frozensetr_   )r=   Ú	abstractsÚsclsr9   Úvalues        r   Úupdate_abstractmethodsrk   ’   s·   € ô  �3Ð-×.Ñ.ð ˆ
ä“€Ið —”ˆÜ˜DÐ"7¸Ö<ˆDÜ˜C tÓ,ˆEÜ�uÐ4°e×<Ó<Ø—‘˜dÖ#ó =ñ ð —|‘|×)Ñ)Ö+‰ˆÜ�5Ð0°%×8Ó8Ø�M‰M˜$Öñ ,ô (¨	Ó2€CÔØ€Jr   c                   ó   • \ rS rSrSrSrSrg)ÚABCé¸   zNHelper class that provides a standard way to create an ABC using
inheritance.
r   N)r   r   r   r   r   Ú	__slots__r   r   r   r   rm   rm   ¸   s   † ñð ƒIr   rm   )Ú	metaclassN)r   r   Úclassmethodr	   Ústaticmethodr"   Úpropertyr'   Ú_abcr*   r+   r,   r-   r.   r/   r0   r1   Útyper3   ÚImportErrorÚ_py_abcr   rk   rm   r   r   r   Ú<module>rx      sƒ   ðñ :òô*#˜+ô #ô(#˜<ô #ô( �xô  ð ;÷6÷ 6ó 6ô3�$ô 3òl#ôL�Gó øðA ó ß0Ø€GÖðús   ¨A ÁA,Á+A,