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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected