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
TypeVarTuple should accept compatible tuple types when solving #2372
When a function uses the same TypeVarTuple for two parameters, pyrefly solves
from the first argument and rejects the second if it doesn't exactly match. It
should find a solution that satisfies both arguments. Since int <: float, Ts should solve to (float,) and accept both.
from typing import TypeVarTuple
Ts = TypeVarTuple("Ts")
def func2(arg1: tuple[*Ts], arg2: tuple[*Ts]) -> tuple[*Ts]: ...
func2((0,), (0.0,)) # pyrefly rejects this, but should accept (int <: float)
Activity
yangdanny97 commentedon Feb 9, 2026
This is #105