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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

312
313 @classmethod
314 def __subclasshook__(cls, C):
315 if cls is Iterator:
316 return _check_methods(C, '__iter__', '__next__')
317 return NotImplemented
318
319
320Iterator.register(bytes_iterator)

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected