I would like to be able to easily move a function or class from one file to another. When moving the class, all the imports in my project should be properly updated with the new location. If other functions or classes depend on the object being moved, I should be prompted to include them in the move.
Before Move
File1.py
deffunc1():
passdeffunc2(): # We will select this function to move to File2.pyfunc1()
deffunc3():
func2()
When selecting to Refactor: Movefunct2, to File2.py, it should be noted that func1() must also be moved, to prevent creating a circular dependency.
After Move
File1.py
fromFile2importfunc2# This line was inserted for me after func2() was moveddeffunc3():
func2()
File2.py
deffunc1(): # Dependent functions where also moved passdeffunc2(): # This function was selected for refactoringfunc1()
The text was updated successfully, but these errors were encountered:
I would like to be able to easily move a function or class from one file to another. When moving the class, all the imports in my project should be properly updated with the new location. If other functions or classes depend on the object being moved, I should be prompted to include them in the move.
Before Move
File1.py
When selecting to Refactor: Move
funct2, to File2.py, it should be noted thatfunc1()must also be moved, to prevent creating a circular dependency.After Move
File1.py
File2.py
The text was updated successfully, but these errors were encountered: