| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Is it just lazy test writing or is the code supposed to import from the "wrong" module? Similarly, is it expected that it is enough to import from pyplot? (plt.Rectangle etc.) |
Sorry, something went wrong.
|
Some of the unused imports in pyplot are indeed intentional for convenience, e.g. plt.cycler. I agree that the state is unclear and we should improve on that. I've opened #22149 to follow up. Please leave all unused pyplot imports in place for this PR. |
Sorry, something went wrong.
|
OK! I have restored that (but kept changes in some of the tests to not use the pyplot import). I also did the two-step commit procedure here. |
Sorry, something went wrong.
|
@oscargus something changed in codebase under this PR. Can you please rebase on the main branch? Thanks. |
Sorry, something went wrong.
|
Another of the deprecations changed the same import statement. Fixed now. |
Sorry, something went wrong.
There was a problem hiding this comment.
Some of this seems unrelated to docstring.
Sorry, something went wrong.
|
OK! So now I think it should be properly sorted. |
Sorry, something went wrong.
|
Finally got around to update this. I hope I have not introduced any of the issues... |
Sorry, something went wrong.
|
I should have properly rebased instead of just resolving the conflicts in the web interface... Will do that. |
Sorry, something went wrong.
|
It doesn't seem like you did a rebase in the end? |
Sorry, something went wrong.
Hmm, you are right... Not sure how that happened as I am quite sure I did a rebase (as well)... I'll give it a new go. |
Sorry, something went wrong.
|
Still confused where the merge commit came from, but now it is properly rebased. |
Sorry, something went wrong.
|
Now I am quite certain (more than last time...), that everything is updated. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Related to #16181.
I removed (most) unused imports. I realize that this may be a bad idea because people may import from the incorrect place, especially for pyplot.py. However, it is probably better to comment and/or add pylint/flake8-comments that this is the case. So feel free to point out that it should be restored.
(I will fix any incorrect internal imports, in case there are more than those I have found. If nothing else, it can be a good way to improve the local code base.)
Will add release note when tests pass. Done
PR Checklist
Tests and Styling
Documentation