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
I believe the issue is ruff 0.4.4 PIE804 auto fix does not handle := with same name as dict key
func( **{ "live": False, "url_foo": (url_foo := "http://custom.com"), "url_bar": (url_bar := "http://bespoke.com"), }, )
The text was updated successfully, but these errors were encountered:
What happens? No fix is offered? The fix is incorrect?
Sorry, something went wrong.
Seems like Ruff fixes this as
func( live=False, url_foo=url_foo := "http://custom.com", url_bar=url_bar := "http://bespoke.com", )
which is a syntax error
Ruff fixed, found syntax error then reverted fix (without showing it (or maybe I'm blind?)) and asked me to kindly report it.
I think they just need to be parenthesized.
flake8-pie
unnecessary-dict-kwargs
[flake8-pie] Preserve parentheses in unnecessary-dict-kwargs (#11372
4b330b1
) ## Summary Closes #11371.
charliermarsh
Successfully merging a pull request may close this issue.
I believe the issue is ruff 0.4.4 PIE804 auto fix does not handle := with same name as dict key
The text was updated successfully, but these errors were encountered: