Skip to content

Commit f92844f

Browse files
authored
Fix type alias unpacking syntax errors in tests
Updated type alias test cases to reflect syntax changes.
1 parent ad423fd commit f92844f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ Ts = TypeVarTuple('Ts')
12451245

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

1248-
v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1249-
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1248+
v1: TA[*list[int]] # E: Invalid syntax...
1249+
v2: TA[Unpack[list[int]]] # E: Invalid syntax...
12501250
[builtins fixtures/tuple.pyi]
12511251

12521252
[case testAliasInstanceNameClash]

0 commit comments

Comments
 (0)