mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Added __instancecheck__ and __subclasscheck__ to type (#887)
This commit is contained in:
committed by
Guido van Rossum
parent
8ce64ce782
commit
bb33cb0119
@@ -72,6 +72,8 @@ class type:
|
||||
# Note: the documentation doesnt specify what the return type is, the standard
|
||||
# implementation seems to be returning a list.
|
||||
def mro(self) -> List[type]: ...
|
||||
def __instancecheck__(self, instance: Any) -> bool: ...
|
||||
def __subclasscheck__(self, subclass: type) -> bool: ...
|
||||
|
||||
class super(object):
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user