Closed researcher175 closed 8 months ago
Rename Field refactoring allows the use of the name of the recursive method in the field inside the same method. It would be nice if Rope could emit an alert to the user to confirm the operation to avoid type errors
Steps to reproduce the behavior:
Code before refactoring:
def pluralize(word, pos="NN", custom={}, classical=True): if word.endswith("'"): owners = pluralize(word.rstrip("'s"), pos, custom, classical) if owners.endswith("s"): return owners + "'" words = word.replace("-", " ").split(" ") return word.replace(words[0], pluralize(words[0], pos, custom, classical))
2. Apply the Rename Field refactoring with the new name 'pluralize' to the 'owners' field.
Closing. Ticket merged into #779.
Rename Field refactoring allows the use of the name of the recursive method in the field inside the same method. It would be nice if Rope could emit an alert to the user to confirm the operation to avoid type errors
Steps to reproduce the behavior:
Code before refactoring: