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,8 +1245,9 @@ 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)
1249- # python3.10: Invalid syntax; you likely need to run mypy using Python 3.11 or newer
1248+ # Only "Test suite with py310-ubuntu, mypyc-compiled" expects: Invalid syntax; you likely need to run mypy using Python 3.11 or newer
1249+ # The other tests expects: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1250+ # v1: TA[*list[int]]
12501251
12511252v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12521253[builtins fixtures/tuple.pyi]
@@ -1259,8 +1260,9 @@ from typing import TypeVarTuple, Unpack
12591260Ts = TypeVarTuple('Ts')
12601261TA: TypeAlias = tuple[Unpack[Ts]]
12611262
1262- v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1263- # python3.10: Invalid syntax
1263+ # Only "Test suite with py310-ubuntu, mypyc-compiled" expects: Invalid syntax
1264+ # The other tests expects: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1265+ # v1: TA[*list[int]]
12641266
12651267v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
12661268[builtins fixtures/tuple.pyi]
You can’t perform that action at this time.
0 commit comments