Skip to content

Commit

Permalink
Add ABC.__subclasshook__
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilGirdhar committed Feb 18, 2023
1 parent 1db405b commit 1858b0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class abstractstaticmethod(staticmethod[_R_co], Generic[_R_co]):
class abstractproperty(property):
__isabstractmethod__: Literal[True]

class ABC(metaclass=ABCMeta): ...
class ABC(metaclass=ABCMeta):
@classmethod
def __subclasshook__(cls, subclass: Any, /) -> bool: ...

def get_cache_token() -> object: ...

Expand Down

0 comments on commit 1858b0c

Please sign in to comment.