ruff/crates/ruff_linter
Nikolas Hearp 8a85a2961e
[flake8-simplify] Apply SIM113 when index variable is of type int (#21395)
## Summary

Fixes #21393

Now the rule checks if the index variable is initialized as an `int`
type rather than only flagging if the index variable is initialized to
`0`. I used `ResolvedPythonType` to check if the index variable is an
`int` type.

## Test Plan

Updated snapshot test for `SIM113`.

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-11-12 17:54:39 +00:00
..
resources [flake8-simplify] Apply SIM113 when index variable is of type int (#21395) 2025-11-12 17:54:39 +00:00
src [flake8-simplify] Apply SIM113 when index variable is of type int (#21395) 2025-11-12 17:54:39 +00:00
Cargo.toml Bump 0.14.4 (#21306) 2025-11-06 15:47:29 -06:00