Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
oscargus commentedJul 30, 2023
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 tosuggest an improvement. |
rcomer commentedJul 30, 2023
I assumed we would want to backport this to the doc branch as the CI is failing there too -#26413. |
QuLogic commentedAug 1, 2023
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 commitf7a8cab)
…3.7.2-docBackport PR#26414: Fixes for pycodestyle v2.11
Uh oh!
There was an error while loading.Please reload this page.
PR summary
flake8is 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 thekeepdims keyword.
Everywhere else I just replaced
==withisas that preserves existing behaviour so seems safest. Possibly some places could have usedisinstanceinstead 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