Skip to content

Commit

Permalink
Merge pull request #795 from smheidrich/fix-gh-794-docs-create-move-i…
Browse files Browse the repository at this point in the history
…nstead-of-move

Fix mention of Move -> create_move in docs
  • Loading branch information
lieryan authored Nov 14, 2024
2 parents 54433b8 + b4e8838 commit 33d596a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,15 @@ Refactorings
============

Have a look at ``rope.refactor`` package and its sub-modules. For
example for performing a move refactoring you can create a ``Move``
object like this:
example for performing a move refactoring you can create an object
representing this operation (which will be an instance of e.g.
`MoveMethod`, `MoveModule`, ...) like this:

.. code-block:: python
mover = Move(project, resource, offset)
from rope.refactor.move import create_move
mover = create_move(project, resource, offset)
Where ``resource`` and ``offset`` is the location to perform the
refactoring.
Expand Down

0 comments on commit 33d596a

Please sign in to comment.