We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3db3d commit d24ccffCopy full SHA for d24ccff
1 file changed
test-data/unit/check-type-aliases.test
@@ -1245,8 +1245,16 @@ Ts = TypeVarTuple('Ts')
1245
1246
TA: TypeAlias = tuple[Unpack[Ts]]
1247
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)
+v1: TA[*list[int]]
+v2: TA[Unpack[list[int]]]
1250
+
1251
+[out-python3.10]
1252
+main:8: error: Invalid syntax
1253
+main:9: error: Invalid syntax
1254
1255
+[out]
1256
+main:8: error: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1257
+main:9: error: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1258
[builtins fixtures/tuple.pyi]
1259
1260
[case testAliasInstanceNameClash]
0 commit comments