used-before-assignment
when using walrus operator(:=)
in dictionary with function
#8486
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
This issue is similar to #4828 and #8125, but seems to be different
The dictionary is fine when used alone, but when used with some function, the used-before-assignment code occurs.
Like issue #8425
test code
Configuration
No response
Command used
Pylint output
Expected behavior
no error
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: