MCPcopy Index your code
hub / github.com/python/cpython / C

Class C

Lib/test/test_typing.py:299–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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):

Calls

no outgoing calls