Skip to content

Commit 8a3c1d0

Browse files
authored
Revise error messages in check-type-aliases tests
Update error messages for unpacking list in type alias tests to reflect Python version requirements.
1 parent 5999e31 commit 8a3c1d0

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,7 +1245,7 @@ from typing import TypeVarTuple, Unpack
12451245
Ts = TypeVarTuple('Ts')
12461246
TA: TypeAlias = tuple[Unpack[Ts]]
12471247

1248-
v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1248+
v1: TA[*list[int]] # E: Invalid syntax; you likely need to run mypy using Python 3.11 or newer
12491249
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12501250
[builtins fixtures/tuple.pyi]
12511251

@@ -1257,7 +1257,7 @@ from typing import TypeVarTuple, Unpack
12571257
Ts = TypeVarTuple('Ts')
12581258
TA: TypeAlias = tuple[Unpack[Ts]]
12591259

1260-
v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1260+
v1: TA[*list[int]] # E: Invalid syntax
12611261
v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12621262
[builtins fixtures/tuple.pyi]
12631263

0 commit comments

Comments
 (0)