guettli
guettli

Reputation: 27919

PyCharm removes comments like `# noinspection PyUnresolvedReferences`

If I do clean up my python source code with PyCharm, the commented line gets removed:

# noinspection PyUnresolvedReferences
import foolib

I want import foolib to be kept, even if I do optimize imports.

If I use this feature of pyCharm twice, then import foolib gets removed :-(

Is this a bug or a feature?

I use pyCharm version 2016.3.2

Upvotes: 1

Views: 2485

Answers (1)

afxentios
afxentios

Reputation: 2568

This is currently a reported bug. You can find more information here.

However note that is marked as a Major bug, so hopefully ti will get fixed soon.

Upvotes: 1

Related Questions