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

Class D

Lib/test/test_typing.py:303–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 with self.assertRaisesRegex(TypeError,
302 r'Cannot subclass typing\.Self'):
303 class D(Self):
304 pass
305
306 def test_cannot_init(self):
307 with self.assertRaises(TypeError):

Calls

no outgoing calls