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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

224
225 @classmethod
226 def __subclasshook__(cls, C):
227 if cls is AsyncIterator:
228 return _check_methods(C, "__anext__", "__aiter__")
229 return NotImplemented
230
231
232class AsyncGenerator(AsyncIterator):

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected