-
Notifications
You must be signed in to change notification settings - Fork 2k
Invalid fix for PLE1141 #13343
Copy link
Copy link
Closed
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
- I think the autofix is not safe
- Ruff version: 0.6.4
- Ruff command:
ruff check --preview --fix
d: dict[tuple[int, str], bool] = {}
d[1, "a"] = True
for n, c in d:
print(n, c)autofixed to
d: dict[tuple[int, str], bool] = {}
d[1, "a"] = True
for n, c in d.items():
print(n, c)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
previewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule