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 37803c4 commit dd41f93Copy full SHA for dd41f93
1 file changed
Lib/test/test_typing.py
@@ -10859,6 +10859,10 @@ def test_no_attributes(self):
10859
with self.assertRaises(AttributeError):
10860
type(NoDefault).foo
10861
10862
+ def test_no_subclassing(self):
10863
+ with self.assertRaises(TypeError):
10864
+ class Test(type(NoDefault)): ...
10865
+
10866
10867
class AllTests(BaseTestCase):
10868
"""Tests for __all__."""
0 commit comments