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.

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