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

Method __subclasshook__

Lib/io.py:124–127  ·  view source on GitHub ↗
(cls, C)

Source from the content-addressed store, hash-verified

122
123 @classmethod
124 def __subclasshook__(cls, C):
125 if cls is Reader:
126 return _check_methods(C, "read")
127 return NotImplemented
128
129 __class_getitem__ = classmethod(GenericAlias)
130

Callers 1

__subclasscheck__Method · 0.45

Calls 1

_check_methodsFunction · 0.90

Tested by

no test coverage detected