forked from VimPlug/jedi
Add more tests about newstyle unions
This commit is contained in:
@@ -217,3 +217,11 @@ b
|
|||||||
x[0]
|
x[0]
|
||||||
#? str()
|
#? str()
|
||||||
x[1]
|
x[1]
|
||||||
|
|
||||||
|
def check_newstyle_unions(u1: int | str, u2: list[int] | list[str]):
|
||||||
|
#? int() str()
|
||||||
|
u1
|
||||||
|
#? list()
|
||||||
|
u2
|
||||||
|
#? int() str()
|
||||||
|
u2[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user