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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

271
272 @classmethod
273 def __subclasshook__(cls, C):
274 if cls is AsyncGenerator:
275 return _check_methods(C, '__aiter__', '__anext__',
276 'asend', 'athrow', 'aclose')
277 return NotImplemented
278
279
280AsyncGenerator.register(async_generator)

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected