MCPcopy Index your code
hub / github.com/RustPython/RustPython / RevNoIter

Class RevNoIter

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_ReversibleMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_ReversibleMethod · 0.68