conditional import X.Y causes false positive possibly-used-before-assignment #10081
Labels
Backported
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
Command used
$ pylint -E condimport.py
Pylint output
Expected behavior
The
os
variable is set in both branches, so no error should be reported.Pylint version
The text was updated successfully, but these errors were encountered: