MCPcopy Create free account
hub / github.com/DasyDong/developer-roadmap / __instancecheck__

Method __instancecheck__

code/interface.py:44–45  ·  view source on GitHub ↗
(cls, instance)

Source from the content-addressed store, hash-verified

42 """A Parser metaclass that will be used for parser class creation.
43 """
44 def __instancecheck__(cls, instance):
45 return cls.__subclasscheck__(type(instance))
46
47 def __subclasscheck__(cls, subclass):
48 return (hasattr(subclass, 'load_data_source') and

Callers

nothing calls this directly

Calls 1

__subclasscheck__Method · 0.45

Tested by

no test coverage detected