Reformatting file makes special comments move

I am suppressing warnings about unused imports for things like py.test fixtures using

#noinspection PyUnresolvedReferences
from package import Klass
prettyPrint();

But when I do a reformat file or import a non imported package by going to ShowIntentionActions and selecting import, the new import is put in in-between the comment and it's import statement.  Then on commit or optimize imports the import is removed because PyCharm now thinks it is unused.

Thanks for fixing the bug!
1 comment
Comment actions Permalink
Hi Austin,

Thanks for your details.
Please vote for http://youtrack.jetbrains.com/issue/PY-10719 to get it fixed and receive updates on this issue.
0

Please sign in to leave a comment.