We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
class MyClass: def my_method(self): myvar = [d for d in ds] print(1)
Describe the refactoring you want to do: Select the "print(1)" line, and then trigger "Extract method including similar statements"
Expected code after refactoring:
class MyClass: def my_method(self): myvar = [d for d in ds] self.kextracted_method() def extracted_method(self): print(1)
pylsp: error: pylsp-rope: 'PyComprehension' object has no attribute 'get_kind'
Editor information:
The text was updated successfully, but these errors were encountered:
cofirmed here, python 3.9 with rope 0.23 has the same issue
Sorry, something went wrong.
fix(extract-method): Extracts method when list comprehension within m…
a42ee46
…ethod's scope fixes python-rope#461
Successfully merging a pull request may close this issue.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Describe the refactoring you want to do: Select the "print(1)" line, and then trigger "Extract method including similar statements"
Expected code after refactoring:
Editor information:
The text was updated successfully, but these errors were encountered: