ruff/crates/ruff_linter/resources
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
..
test [flake8-simplify] Apply SIM113 when index variable is of type int (#21395) 2025-11-12 17:54:39 +00:00
__init__.py