erg/crates/erg_compiler/lib/pystd/abc.d.er
Lionel H 0dd9e0876f feat(erg): add subclasshook method in abc.d.er
Add __subclasshook__ magic method which is used to implement the logic
that validates a class correctly conform to an interface.

Signed-off-by: Lionel H <lionel.hubaut@dekimo.com>
2024-07-08 11:10:52 +02:00

13 lines
469 B
Python

.abstractmethod: |F <: GenericCallable|(F) -> F
.abstractclassmethod: |F <: GenericCallable|(F) -> F
.abstractstaticmethod: |F <: GenericCallable|(F) -> F
.ABCMeta: ClassType
.ABCMeta <: Type
.ABCMeta.
__instancecheck__: (self: .ABCMeta, instance: Obj) -> Bool
__subclasscheck__: (self: .ABCMeta, subclass: Type) -> Bool
__subclasshook__: (self: .ABCMeta, subclass: Type) -> Bool
register: (self: .ABCMeta, subclass: Type) -> NoneType
.ABC: ClassType