Skip to content

Autofix conflict between PLR1736 and FURB148 #9010

@danparizher

Description

@danparizher

The following autofix introduces a NameError when both PLR1736 and FURB148 are selected.

Before:

letters = ["a", "b", "c"]

for index, letter in enumerate(letters):
    print(letters[index])

After:

letters = ["a", "b", "c"]

for index in range(len(letters)):
    print(letter)

ruff 0.1.7

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions