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 a653243 commit 3c0287eCopy full SHA for 3c0287e
1 file changed
test-data/unit/check-python310.test
@@ -2389,6 +2389,18 @@ X = None | C
2389
Y = None | D
2390
[builtins fixtures/type.pyi]
2391
2392
+[case testGenericTypeAliasArgOfTypeAliasIsUnpackedTuple]
2393
+from typing_extensions import TypeAlias
2394
+from typing import TypeVarTuple, Unpack
2395
+
2396
+Ts = TypeVarTuple('Ts')
2397
+TA: TypeAlias = tuple[Unpack[Ts]]
2398
2399
+# v1: TA[*list[int]] # E: Invalid syntax
2400
2401
+v2: TA[Unpack[list[int]]] # E: "list[int]" cannot be unpacked (must be tuple or TypeVarTuple)
2402
+[builtins fixtures/tuple.pyi]
2403
2404
[case testMatchStatementWalrus]
2405
class A:
2406
a = 1
0 commit comments