False positive 'undefined-variable' with assignment expression in decorator #5735
Labels
Assignment expression
Related to the walrus operator / assignment expression
C: undefined-variable
Issues related to 'undefined-variable' check
Decorators
False Positive 🦟
A message is emitted but nothing is wrong with the code
Bug description
When using an assignment expression in a decorator, a false positive 'undefined-variable' and 'unused-variable' may be raised.
Reproducible Example
Pylint output
Expected behavior
No errors
Pylint version
The text was updated successfully, but these errors were encountered: