8000 Don't present irrelevant in_hierarchy options · python-mode/python-mode@41ed4df · GitHub
[go: up one dir, main page]

Skip to content

Commit 41ed4df

Browse files
committed
Don't present irrelevant in_hierarchy options
1 parent 6c51814 commit 41ed4df

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

pymode/rope.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,6 @@ def get_code_actions(self):
497497
return [
498498
'perform',
499499
'preview',
500-
'perform in class hierarchy',
501-
'preview in class hierarchy',
502500
]
503501

504502
@staticmethod
@@ -555,6 +553,14 @@ def get_input_str(self, refactor, ctx):
555553

556554
return newname
557555

556+
def get_code_actions(self):
557+
return [
558+
'perform',
559+
'preview',
560+
'perform in class hierarchy',
561+
'preview in class hierarchy',
562+
]
563+
558564
@staticmethod
559565
def get_changes(refactor, input_str, in_hierarchy=False):
560566
""" Get changes.
@@ -710,6 +716,14 @@ def get_refactor(ctx):
710716
offset = None
711717
return move.create_move(ctx.project, ctx.resource, offset)
712718

719+
def get_code_actions(self):
720+
return [
721+
'perform',
722+
'preview',
723+
'perform in class hierarchy',
724+
'preview in class hierarchy',
725+
]
726+
713727

714728
class ChangeSignatureRefactoring(Refactoring):
715729

@@ -737,6 +751,14 @@ def get_refactor(ctx):
737751
return change_signature.ChangeSignature(
738752
ctx.project, ctx.resource, offset)
739753

754+
def get_code_actions(self):
755+
return [
756+
'perform',
757+
'preview',
758+
'perform in class hierarchy',
759+
'preview in class hierarchy',
760+
]
761+
740762
def get_changes(self, refactor, input_string, in_hierarchy=False):
741763
""" Function description.
742764

0 commit comments

Comments
 (0)
0