diff --git a/test/completion/pep0484_typing.py b/test/completion/pep0484_typing.py index 6b085fc2..0467c8c5 100644 --- a/test/completion/pep0484_typing.py +++ b/test/completion/pep0484_typing.py @@ -183,3 +183,18 @@ def optional( class ForwardReference: pass + +import typing as t +def union2(x: t.Union[int, str]): + #? int() str() + x + +from typing import Union +def union3(x: Union[int, str]): + #? int() str() + x + +from typing import Union as U +def union4(x: U[int, str]): + #? int() str() + x