Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 7, 2019

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
Copy link
Member

jklymak commented Oct 1, 2019

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

@anntzer
Copy link
Contributor Author

anntzer commented Oct 1, 2019

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 jklymak merged commit ee26217 into matplotlib:master Oct 1, 2019
@jklymak jklymak added this to the v3.3.0 milestone Oct 1, 2019
@anntzer anntzer deleted the unusedimports branch October 1, 2019 17:10
@anntzer anntzer mentioned this pull request Oct 1, 2019
6 tasks
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