You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Passing an unpacked tuple of types as type arguments to the type parameters [T, *Ts] gets error #2363
The relevant part of the typing conformance test is here:
TA9 = tuple[*Ts, T1]
TA10 = TA9[*tuple[int, ...]] # OK
TA11 = tuple[T, *Ts1]
TA12 = TA11[*Ts2] # E
To me this seems like we should allow unpacking a regular tuple type in this context but not another TypeVarTuple.
When using concrete or unpacked type forms we need to make sure there are enough types, so TA9[*tuple[()]] would still error, as would TA9[*tuple[*Ts2]]
Activity
yangdanny97 commentedon Feb 8, 2026
Sandbox
The relevant part of the typing conformance test is here:
To me this seems like we should allow unpacking a regular tuple type in this context but not another TypeVarTuple.
When using concrete or unpacked type forms we need to make sure there are enough types, so
TA9[*tuple[()]]would still error, as wouldTA9[*tuple[*Ts2]]asukaminato0721 commentedon Feb 9, 2026
claim
migeed-z commentedon Feb 23, 2026
Note: PR #2364 which is currently landing will not address the conformance issue. Do not close it yet.
fix Passing an unpacked tuple of types as type arguments to the type …