diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 8cdb1166c847f7..cb6be2cee87d7a 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4243,6 +4243,10 @@ def test_cannot_check_subclass(self): with self.assertRaises(TypeError): issubclass(int, Annotated[int, "positive"]) + def test_too_few_type_args(self): + with self.assertRaisesRegex(TypeError, 'at least two arguments'): + Annotated[int] + def test_pickle(self): samples = [typing.Any, typing.Union[int, str], typing.Optional[str], Tuple[int, ...],