How to enable "unused imports" in PyCharm
3 answers
None of the existing answers worked for me.
However, I noticed that the file I was having the problem with was outside the project (one .py file opened directly from File-> Open). For some reason, even marking global imports as unused doesn't work.
Adding the file to the project solves the problem.
+2
source to share