FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Explicitly list allowed "unused" imports, remove the rest. by anntzer · Pull Request #15210 · matplotlib/matplotlib · GitHub

Repository navigation

Explicitly list allowed "unused" imports, remove the rest. - #15210

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:unusedimports
Oct 1, 2019
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:unusedimports

Conversation

anntzer commented Sep 7, 2019

Copy link
Copy Markdown
Contributor

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

jklymak commented Oct 1, 2019

Copy link
Copy Markdown
Member

So why do those files keep their "unused" imports?

anntzer commented Oct 1, 2019

Copy link
Copy Markdown
Contributor Author

Because they are effectively public API (you can import TextPath from matplotlib.text, even though you should really import it from matplotlib.textpath; or, for the constants in matplotlib._image, matplotlib.image is the public place from which you can import them).

jklymak merged commit ee26217 into matplotlib:master Oct 1, 2019
jklymak added this to the v3.3.0 milestone Oct 1, 2019
anntzer deleted the unusedimports branch October 1, 2019 17:10
anntzer mentioned this pull request Oct 1, 2019
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL