(self)
| 4363 | self.assertNotIsSubclass(str, typing.SupportsIndex) |
| 4364 | |
| 4365 | def test_bundled_protocol_instance_works(self): |
| 4366 | self.assertIsInstance(0, typing.SupportsAbs) |
| 4367 | class C1(typing.SupportsInt): |
| 4368 | def __int__(self) -> int: |
| 4369 | return 42 |
| 4370 | class C2(C1): |
| 4371 | pass |
| 4372 | c = C2() |
| 4373 | self.assertIsInstance(c, C1) |
| 4374 | |
| 4375 | def test_collections_protocols_allowed(self): |
| 4376 | @runtime_checkable |
nothing calls this directly
no test coverage detected