-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fixes for pycodestyle v2.11 #26414
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
Fixes for pycodestyle v2.11 #26414
Conversation
Changed the milestone as this is also library code. |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
I assumed we would want to backport this to the doc branch as the CI is failing there too - #26413. |
We don't backport to that branch because it wouldn't have any effect, but this will, so it's okay to backport. |
(cherry picked from commit f7a8cab)
…3.7.2-doc Backport PR #26414: Fixes for pycodestyle v2.11
PR summary
flake8
is currently failing in CI withI think this is the relevant change: PyCQA/pycodestyle#1086
In the bubble example, it looks like the type check was there just to make sure we get an array-like out of the method. We can achieve that with the keepdims keyword.
Everywhere else I just replaced
==
withis
as that preserves existing behaviour so seems safest. Possibly some places could have usedisinstance
instead but I do not know if there is an advantage to changing it to that (and I also do not know those parts of the code well enough to make that call).PR checklist