-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PERF101 False positive #8746
Comments
What type is |
It's a list. Removing the copy means that the append statements below would modify the list that's being iterated over. I edited in the context. |
I see that makes sense. We can probably special case |
I agree with you that |
From the CPython source:
The auto-fix rule removes
list
, which breaks this code.The text was updated successfully, but these errors were encountered: