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

Method __subclasshook__

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

Source from the content-addressed store, hash-verified

344
345 @classmethod
346 def __subclasshook__(cls, C):
347 if cls is Reversible:
348 return _check_methods(C, "__reversed__", "__iter__")
349 return NotImplemented
350
351
352class Generator(Iterator):

Callers

nothing calls this directly

Calls 1

_check_methodsFunction · 0.85

Tested by

no test coverage detected