ruff
15358794 - [ty] Relax union variadic guard to check only parameters beyond minimum length (#23298)

Commit
4 days ago
[ty] Relax union variadic guard to check only parameters beyond minimum length (#23298) ## Summary The guard condition for per-element union iteration in match_variadic previously required all remaining positional parameters to be defaulted. This was overly conservative. We only need parameters beyond the shortest union element's length to be defaulted, since those positions are guaranteed to be provided by every union element. See: https://github.com/astral-sh/ruff/pull/23124/changes#r2806496807. --------- Co-authored-by: Carl Meyer <carl@astral.sh>
Author
Parents
Loading