1 # Test ``inspect.formatannotation``
2 # https://github.com/python/cpython/issues/96073
3
4 from typing import Union, List
5
6 ann = Union[List[str], int]
7
8 # mock typing._type_repr behaviour
9 class ESC[4;38;5;81mA: ...
10
11 A.__module__ = 'testModule.typing'
12 A.__qualname__ = 'A'
13
14 ann1 = Union[List[A], int]