[3.14] gh-149410: Test that typing.NoDefault is final (GH-149411) (#149419)

gh-149410: Test that `typing.NoDefault` is final (GH-149411)
(cherry picked from commit bad9296fb0)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot)
2026-05-05 17:25:23 +02:00
committed by GitHub
parent 37803c4365
commit dd41f93320
+4
View File
@@ -10859,6 +10859,10 @@ class NoDefaultTests(BaseTestCase):
with self.assertRaises(AttributeError):
type(NoDefault).foo
def test_no_subclassing(self):
with self.assertRaises(TypeError):
class Test(type(NoDefault)): ...
class AllTests(BaseTestCase):
"""Tests for __all__."""