-
Notifications
You must be signed in to change notification settings - Fork 276
Closed
Closed
Copy link
Labels
Description
Describe the Bug
Unpacking a tuple typed as a TypeVarTuple Ts into another tuple should yield tuple[*tuple[Ts]] but sometimes yields tuple[*tuple[object, ...]]. I can only replicate this if the expression is nested in a sufficiently complex expression where the tuple is first used as the argument to a callable and spread into the target tuple later and all of this happens in a loop. Both mypy and pyright accepts the attached test cases.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable