We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing.NoDefault
1 parent 70bd1c2 commit bad9296Copy full SHA for bad9296
1 file changed
Lib/test/test_typing.py
@@ -11131,6 +11131,10 @@ def test_no_attributes(self):
11131
with self.assertRaises(AttributeError):
11132
type(NoDefault).foo
11133
11134
+ def test_no_subclassing(self):
11135
+ with self.assertRaises(TypeError):
11136
+ class Test(type(NoDefault)): ...
11137
+
11138
11139
class AllTests(BaseTestCase):
11140
"""Tests for __all__."""
0 commit comments