mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-06 19:23:59 +08:00
Add more tests about newstyle unions
This commit is contained in:
@@ -217,3 +217,11 @@ b
|
||||
x[0]
|
||||
#? str()
|
||||
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