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,10 @@ 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]]
1249+ # python3.10: Invalid syntax; you likely need to run mypy using Python 3.11 or newer
1250+ # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1251+
12491252v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12501253[builtins fixtures/tuple.pyi]
12511254
@@ -1257,7 +1260,10 @@ from typing import TypeVarTuple, Unpack
12571260Ts = TypeVarTuple('Ts')
12581261TA: TypeAlias = tuple[Unpack[Ts]]
12591262
1260- v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1263+ v1: TA[*list[int]]
1264+ # python3.10: Invalid syntax
1265+ # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1266+
12611267v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12621268[builtins fixtures/tuple.pyi]
12631269
You can’t perform that action at this time.
0 commit comments