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 67c47ce commit 99c9b85Copy full SHA for 99c9b85
1 file changed
Lib/test/test_typing.py
@@ -10570,6 +10570,10 @@ def test_no_attributes(self):
10570
with self.assertRaises(AttributeError):
10571
type(NoDefault).foo
10572
10573
+ def test_no_subclassing(self):
10574
+ with self.assertRaises(TypeError):
10575
+ class Test(type(NoDefault)): ...
10576
+
10577
10578
class AllTests(BaseTestCase):
10579
"""Tests for __all__."""
0 commit comments