mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Added __instancecheck__ and __subclasscheck__ to type (#887)
This commit is contained in:
committed by
Guido van Rossum
parent
8ce64ce782
commit
bb33cb0119
@@ -68,6 +68,8 @@ class type(object):
|
||||
# implementation seems to be returning a list.
|
||||
def mro(self) -> List[type]: ...
|
||||
def __subclasses__(self: _TT) -> List[_TT]: ...
|
||||
def __instancecheck__(self, instance: Any) -> bool: ...
|
||||
def __subclasscheck__(self, subclass: type) -> bool: ...
|
||||
|
||||
class int(SupportsInt, SupportsFloat, SupportsAbs[int]):
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user