pylint #37842 detect UnboundLocalError: local variable referenced before assignment [open]

This is a quite common Python error, which can be triggered by:

  • a wrong name shadowing an other one
  • a missing initialization path (variable is initialized in the if branch but not in the else branch)
  • ...

Having pylint detecting this would be very nice.

appeared in<not specified>
done in<not specified>
closed by<not specified>