test with different ways of importing the typing module

This commit is contained in:
Claude
2015-12-31 11:04:26 +01:00
parent 3852431549
commit 409ee5568a

View File

@@ -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