- 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)
ruff check --preview --fixautofixed to