rope icon indicating copy to clipboard operation
rope copied to clipboard

The Rename Method refactoring is allowed in the overridden method.

Open jonh-copin opened this issue 1 year ago • 0 comments

The method that overrides the superclass method receives the refactoring without warning the user that there is a superclass method. It would be nice if Rope could emit a warning in this case.

Steps to reproduce the behavior:

  1. Code before refactoring:
class MyList(list):

    def count(self, strg, case_sensitive=False, *args, **kwargs):
        return super(MyList, self).count(strg, *args, **kwargs)
  1. Apply the Rename Method in MyList.count().

jonh-copin avatar Jan 15 '24 16:01 jonh-copin