Is global-variable-not-assigned (PLW0602) auto fixable? #14031
-
Is https://docs.astral.sh/ruff/rules/global-variable-not-assigned/#global-variable-not-assigned-plw0602 auto fixable? |
Beta Was this translation helpful? Give feedback.
Answered by
MichaReiser
Nov 1, 2024
Replies: 1 comment 1 reply
-
No, it's not. The reason is that there's no obvious fix. The fix is either:
but Ruff doesn't know which one it is. The documentation mentions when a fix is available. E.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harupy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it's not. The reason is that there's no obvious fix. The fix is either:
but Ruff doesn't know which one it is. The documentation mentions when a fix is available. E.g.
iteration-over-set
states that it always has a fix.