ruff/crates/ruff_linter
Takayuki Maeda a51a0f16e4
[`flake8-simplify`] Skip `SIM911` when unknown arguments are present (#20697)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Fixes #18778

Prevent SIM911 from triggering when zip() is called on .keys()/.values()
that take any positional or keyword arguments, so Ruff
never suggests the lossy rewrite.

## Test Plan

<!-- How was it tested? -->

Added a test case to SIM911.py.
2025-10-21 16:58:48 -04:00
..
resources [`flake8-simplify`] Skip `SIM911` when unknown arguments are present (#20697) 2025-10-21 16:58:48 -04:00
src [`flake8-simplify`] Skip `SIM911` when unknown arguments are present (#20697) 2025-10-21 16:58:48 -04:00
Cargo.toml Bump 0.14.1 (#20925) 2025-10-16 12:44:13 -05:00