mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-22 18:57:05 +08:00
Add more tests about newstyle unions
This commit is contained in:
1 parent
e7d29065bd
commit
b7652708ec
1 file changed
+8
@@ -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