mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-17 22:08:28 +00:00
![]() ## Summary The `SequenceIndexVisitor` currently does not recurse into subexpressions of subscripts when searching for subscript accesses that would trigger this rule. That means that we don't currently detect violations of the rule on snippets like this: ```py data = {"a": 1, "b": 2} column_names = ["a", "b"] for index, column_name in enumerate(column_names): _ = data[column_names[index]] ``` Fixes #13183 ## Test Plan `cargo test -p ruff_linter` |
||
---|---|---|
.. | ||
resources | ||
src | ||
__init__.py | ||
Cargo.toml |