gh-149410: Test that typing.NoDefault is final (#149411)

This commit is contained in:
sobolevn 2026-05-05 17:58:49 +03:00 committed by GitHub
parent 70bd1c2dd2
commit bad9296fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11131,6 +11131,10 @@ def test_no_attributes(self):
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__."""