MCPcopy Index your code
hub / github.com/RustPython/RustPython / C

Class C

Lib/test/test_typing.py:301–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls