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
Mypy fails to solve tuple[int, *Ts, int] as an Iterable[T]. #19659
For comparison, pyright predicts Code sample in pyright playgroundIterable[int | Union[*Ts@demo]].
Since Union of TypeVarTuple is not specced yet, mypy should nevertheless probably fall back to something like Iterable[object] or Iterable[Any], but Iterable[int] is just wrong.
changed the title [-]Maybe fails to solve `tuple[int, *Ts, int]` as an `Iterable[T]`.[/-][+]Mypy fails to solve `tuple[int, *Ts, int]` as an `Iterable[T]`.[/+]on Aug 15, 2025
Activity
[-]Maybe fails to solve `tuple[int, *Ts, int]` as an `Iterable[T]`.[/-][+]Mypy fails to solve `tuple[int, *Ts, int]` as an `Iterable[T]`.[/+]