| 297 | def test_cannot_subclass(self): |
| 298 | with self.assertRaisesRegex(TypeError, CANNOT_SUBCLASS_TYPE): |
| 299 | class C(type(Self)): |
| 300 | pass |
| 301 | with self.assertRaisesRegex(TypeError, |
| 302 | r'Cannot subclass typing\.Self'): |
| 303 | class D(Self): |
no outgoing calls