forked from VimPlug/jedi
test with different ways of importing the typing module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user