noinspection PyUnusedImport not working

As on the screenshot, the warning is still displayed.

What may be the reason?

 

0

i already tried restarting, clearing cache etc

 

0

Hello,

Unfortunately, its a known issue; in the latest PyCharm version, you can disable unused imports by adding the following:

# noinspection PyUnresolvedReferences

or with

# noqa

as shown in a screenshot.

Here you can find a complete list of the available # noinspection comments.

0

请先登录再写评论。