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

Class SizeBlock

Lib/test/test_collections.py:1120–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118 self.assertNotIsInstance(ColNoCont(), Collection)
1119 # Check None blocking
1120 class SizeBlock:
1121 def __iter__(self): return iter([])
1122 def __contains__(self): return False
1123 __len__ = None
1124 class IterBlock:
1125 def __len__(self): return 0
1126 def __contains__(self): return True

Callers 1

test_CollectionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_CollectionMethod · 0.68