diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index e5b596e7f3d..366f7d8eb31 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4543,6 +4543,13 @@ class RETests(BaseTestCase): class AnnotatedTests(BaseTestCase): + def test_new(self): + with self.assertRaisesRegex( + TypeError, + 'Type Annotated cannot be instantiated', + ): + Annotated() + def test_repr(self): self.assertEqual( repr(Annotated[int, 4, 5]),