mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
test with different ways of importing the typing module
This commit is contained in:
@@ -183,3 +183,18 @@ def optional(
|
|||||||
|
|
||||||
class ForwardReference:
|
class ForwardReference:
|
||||||
pass
|
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