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 0c0d582 commit 2676b24Copy full SHA for 2676b24
1 file changed
test-data/unit/check-type-aliases.test
@@ -1246,8 +1246,9 @@ Ts = TypeVarTuple('Ts')
1246
TA: TypeAlias = tuple[Unpack[Ts]]
1247
1248
# For Python 3.10, error: Invalid syntax
1249
-v1: TA[*list[int]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
1250
-v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
+# For other Python, error: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
+v1: TA[*list[int]]
1251
+v2: TA[Unpack[list[int]]]
1252
[builtins fixtures/tuple.pyi]
1253
1254
[case testAliasInstanceNameClash]
0 commit comments