mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-04 23:50:31 +00:00
![]() ## Summary This PR addresses an issue for a variadic argument when involved in argument type expansion of overload call evaluation. The issue is that the expansion of the variadic argument could result in argument list of different arity. For example, in `*args: tuple[int] | tuple[int, str]`, the expansion would lead to the variadic argument being unpacked into 1 and 2 element respectively. This means that the parameter matching that was performed initially isn't sufficient and each expanded argument list would need to redo the parameter matching again. This is currently done by redoing the parameter matching directly, maintaining the state of argument forms (and the conflicting forms), and updating the `Bindings` values if it changes. Closes: astral-sh/ty#735 ## Test Plan Update existing mdtest. |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
mdtest.py | ||
mdtest.py.lock |