Refactor-Move not update import statements

Answered

I am currently using PyCharm Community, and I wanted to move a function from the main file into an "include" file. I hilighted the code, chose Refactor->Move, changed the To: filename to a new name, and I picked another function as well (since it shows a list, why not?). That part worked fine.

But the import statements were not modified at all. The doc I saw was for V2020.2, at https://www.jetbrains.com/help/pycharm/reference-move-class-dialog.html. I am running 2019.3.1, was that import statement modification added between those releases? If not, this is a bug report ;^)

Paul

 

1 comment
Comment actions Permalink

Hi Paul,

Please file a bug to our issue tracker https://youtrack.jetbrains.com/issues/PY and provide files and steps for reproducing this problem.

0

Please sign in to leave a comment.