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

Class U

Lib/test/test_functools.py:2631–2633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629 c.Container.register(T)
2630 self.assertEqual(h(t), "sized") # because it's explicitly in the MRO
2631 class U:
2632 def __len__(self):
2633 return 0
2634 u = U()
2635 self.assertEqual(h(u), "sized") # implicit Sized subclass inferred
2636 # from the existence of __len__()

Callers 1

test_mro_conflictsMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_mro_conflictsMethod · 0.56