mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
This uses the refactoring and support for secondary diagnostic messages to improve the diagnostic for "invalid argument type." The main improvement here is that we show where the function being called is defined, and annotate the span corresponding to the invalid parameter.