-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
flake8-comprehensions (C4) - Remove unnecessary list comprehensions in additional contexts that can take arbitrary iterables (C419) #12648
Comments
|
Honestly not sure why |
Oh, I think it's because |
I think we should expand C409 to include comprehensions. |
|
While
|
I believe the same is true for |
It seems like a toss up to me whether it should be |
What about |
The following code all creates unnecessary list comprehensions
ruff will only suggest changes on the first line:
However all of these are unnecessary list comprehensions. It ought to be able to identify them all. For one, the docs suggest that
sum
is covered, but from the above, it appears to not fully be.The text was updated successfully, but these errors were encountered: