Ignore\disable code inspection\analysis of a highlighted code in a somescript.py
How to ignore code inspection/analysis in PyCharm, but only the highlighted part of code in somescript.py?
The steps I've taken: 1) I highlighted the code 2) in the main toolbar I select code -> inspect code -> custom scope, then from the dropdown, I chose "selection" option 3) then from the "inspect results" window, I chose, for example, "statement has no effect" and on the right I select disable inspection.
Now, the problem is, it disables not only the highlighted code, but the code in the whole somescript.py.
I uploaded a screen recording for this case: https://streamable.com/1m6j3
Please sign in to leave a comment.