diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index cb6be2cee87d7a..8c6a8575211b6f 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4310,6 +4310,11 @@ def test_annotated_in_other_types(self): X = List[Annotated[T, 5]] self.assertEqual(X[int], List[Annotated[int, 5]]) + def test_annotated_mro(self): + class X(Annotated[int, (1, 10)]): ... + self.assertEqual(X.__mro__, (X, int, object), + "Annotated should be transparent.") + class AllTests(BaseTestCase): """Tests for __all__."""