You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In
for
loop, it is problematic to run addition assignment to the iterator variable. But can the same be said of thewith
clause?I would like to know of examples where such code causes bugs in actual behavior.
My code encountered in
PLW2901
:Such examples are not currently included in the test.
https://github.com/charliermarsh/ruff/blob/abaf0a198d9d2cebefd5c029bb271be1a3498f20/crates/ruff/resources/test/fixtures/pylint/redefined_loop_name.py
Beta Was this translation helpful? Give feedback.
All reactions