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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

185
186 @classmethod
187 def __subclasshook__(cls, C):
188 if cls is Coroutine:
189 return _check_methods(C, '__await__', 'send', 'throw', 'close')
190 return NotImplemented
191
192
193Coroutine.register(coroutine)

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected