ruff
8a85a296 - [`flake8-simplify`] Apply `SIM113` when index variable is of type `int` (#21395)

Commit
98 days ago
[`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>
Author
Parents
Loading