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