used-before-assignment
false positive with walrus operator
#4828
Labels
Assignment expression
Related to the walrus operator / assignment expression
Bug 🪲
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
python 3.8
Milestone
Bug description
used-before-assignment
false positive occurs on the following code:Configuration
No response
Command used
Pylint output
E0601: Using variable 'bar' before assignment (used-before-assignment)
Expected behavior
no error
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: