Skip to content

Commit

Permalink
Add documentation to MoveGlobal.get_changes()
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Dec 22, 2022
1 parent 34c1ff4 commit 211a005
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rope/refactor/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,16 @@ def get_changes(
resources=None,
task_handle=taskhandle.NullTaskHandle(),
):
"""Return the changes needed for this refactoring
Parameters:
- `dest`: the Resource or dotted moddule name of the move destination
- `resources` can be a list of `rope.base.resources.File` to
apply this refactoring on. If `None`, the restructuring
will be applied to all python files.
"""
if isinstance(dest, str):
dest = self.project.find_module(dest)
if resources is None:
Expand Down

0 comments on commit 211a005

Please sign in to comment.