From b4e8838fd47a5de8d0dd7a2f5faeb0557ddd25c3 Mon Sep 17 00:00:00 2001 From: Shahriar Heidrich Date: Fri, 20 Sep 2024 12:21:35 +0200 Subject: [PATCH] Fix mention of Move -> create_move in docs --- docs/library.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/library.rst b/docs/library.rst index b4c2e43f6..35d497337 100644 --- a/docs/library.rst +++ b/docs/library.rst @@ -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.