Regression used-before-assignment
with type annotation in conditional
#5499
Labels
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
Milestone
Bug description
This is the same issue reported and fixed in #5342 but it still occurs if the assignment is inside a conditional.
Configuration
No response
Command used
Pylint output
test.py:6:16: E0601: Using variable 'A' 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: