-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid used-before-assignment #5112
Labels
Assignment expression
Related to the walrus operator / assignment expression
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Comments
from random import randint
def asd():
return [dom] if (dom := randint(-1, 2)) else [] The same |
Hi, I'd like to take a look at this issue. |
Neat, I assigned you to the issue, to not hesitate to ask for help here or in a draft merge request :) |
jacobtylerwalls
added a commit
to jacobtylerwalls/pylint
that referenced
this issue
Feb 14, 2022
…ound first in container
Pierre-Sassoulas
added a commit
that referenced
this issue
Feb 17, 2022
… first in container (#5812) Co-authored-by: Pierre Sassoulas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Assignment expression
Related to the walrus operator / assignment expression
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Bug description
Configuration
No response
Command used
Pylint output
E0601: Using variable 'x' before assignment (used-before-assignment)
Expected behavior
no error.
Pylint version
OS / Environment
Fedora 34
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: