| 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__() |
no outgoing calls