ignore unused import

is there a way to make pycharm ignore unused import statements?

0
9 comments

i can see it under JavaScript, but not under Python

 

0

Hello, 

 

You can disable the inspection from the bulb icon : 

 

0

I cannot see this menu for some reason. When I hoover on ">" nothing happens

 

0

You need to click here: 

0

Antonina Belianskaya

like i said, when i hover on it nothing happens, and when i click, the optimization just runs without further prompts.

0

You should click right on the > sign to open the menu.  Or you can uncheck it manually in the settings: 

 

0

Antonina Belianskaya

 

nope, rightclicking does nothing.

And no idea what "actions on save" have to do with what i am asking about.

0

I am sorry, it is my mistake. 

 

The "unused import" inspection is a part of "unresolved reference" inspection. You may disable it manually, please see the screenshot. But please be aware of the https://youtrack.jetbrains.com/issue/PY-4330/Unused-import-classified-as-unresolved-reference

0

Please sign in to leave a comment.