MCPcopy Index your code
hub / github.com/RustPython/RustPython / __instancecheck__

Method __instancecheck__

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

Source from the content-addressed store, hash-verified

575
576class _AnyMeta(type):
577 def __instancecheck__(self, obj):
578 if self is Any:
579 raise TypeError("typing.Any cannot be used with isinstance()")
580 return super().__instancecheck__(obj)
581
582 def __repr__(self):
583 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