Skip to content

Commit 1221422

Browse files
authored
Rename test case for unpacked tuple to xfail
1 parent d7b4615 commit 1221422

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test-data/unit/check-type-aliases.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,19 +1237,18 @@ Ta2 = TypeAliasType("Ta2", None, type_params=(Unpack[Ts],)) # E: Free type vari
12371237

12381238
[builtins fixtures/tuple.pyi]
12391239

1240-
[case testGenericTypeAliasArgOfTypeAliasIsUnpackedTuple]
1240+
[case testGenericTypeAliasArgOfTypeAliasIsUnpackedTuple-xfail]
12411241
from typing_extensions import TypeAlias
12421242
from typing import TypeVarTuple, Unpack
12431243

12441244
Ts = TypeVarTuple('Ts')
12451245

12461246
TA: TypeAlias = tuple[Unpack[Ts]]
12471247

1248+
# For Python 3.10, error: Invalid syntax
12481249
v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12491250
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1250-
12511251
[builtins fixtures/tuple.pyi]
1252-
xfail: True
12531252

12541253
[case testAliasInstanceNameClash]
12551254
from lib import func

0 commit comments

Comments
 (0)