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

Method __subclasscheck__

code/interface.py:47–51  ·  view source on GitHub ↗
(cls, subclass)

Source from the content-addressed store, hash-verified

45 return cls.__subclasscheck__(type(instance))
46
47 def __subclasscheck__(cls, subclass):
48 return (hasattr(subclass, 'load_data_source') and
49 callable(subclass.load_data_source) and
50 hasattr(subclass, 'extract_text') and
51 callable(subclass.extract_text))
52
53class UpdatedInformalParserInterface(metaclass=ParserMeta):
54 """This interface is used for concrete classes to inherit from.

Callers 2

__instancecheck__Method · 0.45
__instancecheck__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected