rope icon indicating copy to clipboard operation
rope copied to clipboard

Compilation error after applying the Inline method refactoring

Open jonh-copin opened this issue 1 year ago • 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();

jonh-copin avatar Jan 15 '24 16:01 jonh-copin