used-before-assignment not flagged for import while triggering UnboundLocalError #4624
Labels
C: used-before-assignment
Issues related to 'used-before-assignment' check
False Negative 🦋
No message is emitted but something is wrong with the code
Milestone
Steps to reproduce
importExample.py
variableExample.py
Current behavior
The execution of these two scripts lead to a similar outcome:
pylint
detects the problem correctly for the variable, but not for the importExpected behavior
I'd expect to see
E0601
raised in the case of the import as well.pylint --version output
The text was updated successfully, but these errors were encountered: