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]
|
||||
#? 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