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

Class RevNoIter

Lib/test/test_collections.py:1037–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035 self.validate_abstract_methods(Reversible, '__reversed__', '__iter__')
1036 # Check reversible non-iterable (which is not Reversible)
1037 class RevNoIter:
1038 def __reversed__(self): return reversed([])
1039 class RevPlusIter(RevNoIter):
1040 def __iter__(self): return iter([])
1041 self.assertNotIsSubclass(RevNoIter, Reversible)

Callers 1

test_ReversibleMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_ReversibleMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…