-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
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
WPS425 boolean non-keyword argument clashes with setdefault #1109
Comments
My recommendation is just to ignore ( |
I can't agree with that. Ignoring is an option if I have choices. Python linter should not violate python api itself if this api is allowed. |
The problem is that Python API is inconsistent as f. They actually had to create Why I don't like to create any kind of whitelist here: it is really hard to cover all cases correctly. I am going to work on this soon enough, I have a working prototype of type inferring mechanism that works for our case. Another option is to just turn off this check. |
This will be fixed in |
This isn't worth opening a new Issue, but I found similar behavior when appending booleans to a list, like: |
We are going to allow one-argument booleans in the next release: #1114 |
Wonderful! |
Bug report
What's wrong
How is that should be
Not sure. Maybe there should be a whitelist of allowed methods/functions?
System information
Python 3.7.4
flake8 information
Contents of
flake8 --bug-report
:flake info
Related #1085
The text was updated successfully, but these errors were encountered: