Open martinlehoux opened 2 weeks ago
To summarize the issue:
for n, c in d
iterates over the dictionary keysfor n, c in d.items()
iterates over the key-value
pairs. It's questionable if PLE1141 should be raised for your example because the code only iterates over the keys. Pylint had a similar issue a long time ago https://github.com/pylint-dev/pylint/issues/3283
Yes exactly. But as I understand it, ruff doesn't use type checking, so it would be difficult to say that the key is a tuple.
ruff check --preview --fix
for n, c in d: print(n, c)