rope
rope copied to clipboard
Compilation error after applying the Inline method refactoring
Rope causes a compilation error after modifying the loop inside the return using the inlined method. It would be nice if Rope sent a warning to the user that the method has an empty body.
Steps to reproduce the behavior:
- Code before refactoring:
class MyTokenizer:
def tokenize(self, text):
return
def itokenize(self, text):
return (t for t in self.tokenize(text))
- Apply the Inline Method to MyTokenizer.tokenize();