diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 8449affd03a..090d4c70d3d 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4643,6 +4643,13 @@ class A(typing.Match): 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]),