ruff/crates
Dhruv Manilawala e1bb74b25a
[ty] Match variadic argument to variadic parameter (#20511)
## Summary

Closes: https://github.com/astral-sh/ty/issues/1236

This PR fixes a bug where the variadic argument wouldn't match against
the variadic parameter in certain scenarios.

This was happening because I didn't realize that the `all_elements`
iterator wouldn't keep on returning the variable element (which is
correct, I just didn't realize it back then).

I don't think we can use the `resize` method here because we don't know
how many parameters this variadic argument is matching against as this
is where the actual parameter matching occurs.

## Test Plan

Expand test cases to consider a few more combinations of arguments and
parameters which are variadic.
2025-09-25 07:51:56 +00:00
..
ruff include .pyw files by default when linting and formatting (#20458) 2025-09-24 08:39:30 -07:00
ruff_annotate_snippets Update transitive dependencies (#20513) 2025-09-22 12:50:53 +02:00
ruff_benchmark [ty] Add support for **kwargs (#20430) 2025-09-19 05:00:30 +00:00
ruff_cache
ruff_db [ty] Make FileResolver::path return a full path (#20550) 2025-09-24 13:16:51 -04:00
ruff_dev
ruff_diagnostics
ruff_formatter Add support for using uv as an alternative formatter backend (#19665) 2025-09-09 20:39:53 +05:30
ruff_graph
ruff_index
ruff_linter [flake8-pyi] Avoid syntax error from conflict with PIE790 (PYI021) (#20010) 2025-09-24 21:26:59 +00:00
ruff_macros
ruff_memory_usage
ruff_notebook
ruff_options_metadata
ruff_python_ast include .pyw files by default when linting and formatting (#20458) 2025-09-24 08:39:30 -07:00
ruff_python_ast_integration_tests
ruff_python_codegen Generator preferred quote style (#20434) 2025-09-18 12:57:21 +02:00
ruff_python_formatter Update rust toolchain to 1.90 (#20469) 2025-09-18 16:54:49 +02:00
ruff_python_importer [ruff] Add API for splicing into an existing import statement 2025-09-17 13:59:28 -04:00
ruff_python_index Track t-strings and f-strings for token-based rules and suppression comments (#20357) 2025-09-12 13:00:12 -05:00
ruff_python_literal
ruff_python_parser [syntax-errors]: multiple-starred-expressions (F622) (#20243) 2025-09-24 19:32:55 +00:00
ruff_python_semantic [ruff] Allow dataclass attribute value instantiation from nested frozen dataclass (RUF009) (#20352) 2025-09-12 16:46:49 -04:00
ruff_python_stdlib [pyflakes] Fix false positives for __annotate__ (Py3.14+) and __warningregistry__ (F821) (#20154) 2025-09-23 08:16:00 -04:00
ruff_python_trivia
ruff_python_trivia_integration_tests
ruff_server Update Rust crate anyhow to v1.0.100 (#20499) 2025-09-22 09:51:52 +02:00
ruff_source_file
ruff_text_size [ruff] Add TextRange::to_std_range 2025-09-17 13:59:28 -04:00
ruff_wasm Fix non‑BMP code point handling in quick‑fixes and markers (#20526) 2025-09-24 10:08:00 +02:00
ruff_workspace include .pyw files by default when linting and formatting (#20458) 2025-09-24 08:39:30 -07:00
ty [ty] Make FileResolver::path return a full path (#20550) 2025-09-24 13:16:51 -04:00
ty_combine
ty_ide [ty] Add support for inlay hints on attribute assignment (#20485) 2025-09-23 13:14:46 +02:00
ty_project [ty] Add PYTHONPATH to EnvVars and fix on Windows (#20490) 2025-09-23 08:27:05 +00:00
ty_python_semantic [ty] Match variadic argument to variadic parameter (#20511) 2025-09-25 07:51:56 +00:00
ty_server [ty] Rename "possibly unbound" diagnostics to "possibly missing" (#20492) 2025-09-23 14:26:55 +00:00
ty_static [ty] Add PYTHONPATH to EnvVars and fix on Windows (#20490) 2025-09-23 08:27:05 +00:00
ty_test Update Rust crate anyhow to v1.0.100 (#20499) 2025-09-22 09:51:52 +02:00
ty_vendored [ty] More constraint set simplifications via simpler constraint representation (#20423) 2025-09-16 10:05:01 -04:00
ty_wasm [ty] Make auto-import work in the playground 2025-09-19 14:35:51 -04:00