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

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:22:48 +02:00
committed by GitHub
parent 67c47ce163
commit 99c9b85ad8
+4
View File
@@ -10570,6 +10570,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__."""