python-rope/rope

Compilation error after applying the Inline method refactoring

researcher175 opened this issue · 0 comments

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:

  1. Code before refactoring:
class MyTokenizer:

    def tokenize(self, text):
        return

    def itokenize(self, text):
        return (t for t in self.tokenize(text))
  1. Apply the Inline Method to MyTokenizer.tokenize();