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
Forbid unpacking multiple times in tuples (#13888)
This covers some cases from the PEP646 documentation which says we
should error when there are multiple unpacks:
x: Tuple[int, *Ts, str, *Ts2] # Error
y: Tuple[int, *Tuple[int, ...], str, *Tuple[str, ...]] # Error
We handle it gracefully and include only one of the unpacks so that type
checking can still continue somewhat.
0 commit comments