File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1245,7 +1245,7 @@ from typing import TypeVarTuple, Unpack
12451245Ts = TypeVarTuple('Ts')
12461246TA: 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
12491249v2: 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
12571257Ts = TypeVarTuple('Ts')
12581258TA: 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
12611261v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12621262[builtins fixtures/tuple.pyi]
12631263
You can’t perform that action at this time.
0 commit comments