You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A(object):
def foo(self):
pass
class A2(A):
def foo(self):
pass
class B(object):
def foo(self):
pass
If i want to rename A2's or A's "foo", ropevim provides me with the "in_hierarchy" option, which will also correctly rename foo in A (or A2 respectively), but not in B.
pymode doesn't seem to provide this, I only have the choice "perform", which will only rename the exact method, and not the corresponding one in the super-/subclasses. So I am forced to use ropevim for this kind of refactoring (and actually remember to do so)
It would be nice if pymode would give me this option as well.
Activity
add class hierarchy support to rename
brakhane commentedon Jul 25, 2014
I've added a pull request. It's a quick hack, but it works for me.