PyCharm - unbound local errors are not being marked

Viewed 22

I must've clicked "ignore errors like this", because now unbound local variables that are referenced before assignment aren't marked as such; I would expect a red squiggly line below the variable idontexist:

enter image description here

But, in the settings I've ticked and applied the change to state that unbound local variables should notify me.

enter image description here

Am I missing something?

1 Answers

I figured it out:

  1. In my case it was the inspection for Unresolved references I wanted, not Unbound local variable.
  2. Remove items from ignore references under the Options panel (see the picture below) for a given inspection type.

enter image description here

Related