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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

143
144 @classmethod
145 def __subclasshook__(cls, C):
146 if cls is Writer:
147 return _check_methods(C, "write")
148 return NotImplemented
149
150 __class_getitem__ = classmethod(GenericAlias)

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.90

Tested by

no test coverage detected