MCPcopy Index your code
hub / github.com/python/cpython / __instancecheck__

Method __instancecheck__

Lib/typing.py:600–603  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

598
599class _AnyMeta(type):
600 def __instancecheck__(self, obj):
601 if self is Any:
602 raise TypeError("typing.Any cannot be used with isinstance()")
603 return super().__instancecheck__(obj)
604
605 def __repr__(self):
606 if self is Any:

Callers 2

__instancecheck__Method · 0.45
__instancecheck__Method · 0.45

Calls 1

superClass · 0.85

Tested by

no test coverage detected