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
The * syntax in parameter list defines a keyword-only argument:
*
def foo(a, *, arg):
Extract variable scope is incorrect when handling keywords-only arguments.
To Reproduce Steps to reproduce the behavior:
def func(a, *, arg): print(arg)
Describe the refactoring you want to do: extract refactoring
Expected code after refactoring:
def func(a, *, arg): extracted_method(arg) def extracted_method(arg): print(arg)
def func(a, *, arg): extracted_method() def extracted_method(): print(arg)
Editor information (please complete the following information):
The text was updated successfully, but these errors were encountered:
Fix #566. Add kwonlyargs to list of written arguments when extracting
5fb5359
Successfully merging a pull request may close this issue.
Describe the bug
The
*
syntax in parameter list defines a keyword-only argument:Extract variable scope is incorrect when handling keywords-only arguments.
To Reproduce
Steps to reproduce the behavior:
Describe the refactoring you want to do: extract refactoring
Expected code after refactoring:
Editor information (please complete the following information):
The text was updated successfully, but these errors were encountered: