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

Method __subclasshook__

Lib/_collections_abc.py:293–296  ·  view source on GitHub ↗
(cls, C)

Source from the content-addressed store, hash-verified

291
292 @classmethod
293 def __subclasshook__(cls, C):
294 if cls is Iterable:
295 return _check_methods(C, "__iter__")
296 return NotImplemented
297
298 __class_getitem__ = classmethod(GenericAlias)
299

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected