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