Reformatting file makes special comments move
I am suppressing warnings about unused imports for things like py.test fixtures using
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!
#noinspection PyUnresolvedReferences from package import Klass
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!
Please sign in to leave a comment.
Thanks for your details.
Please vote for http://youtrack.jetbrains.com/issue/PY-10719 to get it fixed and receive updates on this issue.