summaryrefslogtreecommitdiffstats
path: root/Lib/test/typinganndata/ann_module9.py
blob: 952217393e1ff752be288c8aadcd15faac3694ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test ``inspect.formatannotation``
# https://github.com/python/cpython/issues/96073

from typing import Union, List

ann = Union[List[str], int]

# mock typing._type_repr behaviour
class A: ...

A.__module__ = 'testModule.typing'
A.__qualname__ = 'A'

ann1 = Union[List[A], int]