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

Class U

Lib/test/test_functools.py:2593–2595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2591 c.Container.register(T)
2592 self.assertEqual(h(t), "sized") # because it's explicitly in the MRO
2593 class U:
2594 def __len__(self):
2595 return 0
2596 u = U()
2597 self.assertEqual(h(u), "sized") # implicit Sized subclass inferred
2598 # from the existence of __len__()

Callers 1

test_mro_conflictsMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_mro_conflictsMethod · 0.56