Skip to content
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

Be a bit more stringent on invalid inputs. #12627

Merged
merged 1 commit into from Oct 26, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Oct 25, 2018

and give the user fewer ways to shoot themselves in the foot.

The change in backend_cairo is on private API; _save is only ever called
by the various print_foo methods, with a valid fmt.

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

@anntzer anntzer added this to the v3.1 milestone Oct 25, 2018
and give the user fewer ways to shoot themselves in the foot.

The change in backend_cairo is on private API; _save is only ever called
by the various print_foo methods, with a valid fmt.
Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test that all these throw properly, and they are not all tested in CI. But I'll assume you were careful.

@timhoffm timhoffm merged commit 6c0aa84 into matplotlib:master Oct 26, 2018
@anntzer anntzer deleted the invalid-inputs branch October 26, 2018 11:56
thoo added a commit to thoo/matplotlib that referenced this pull request Oct 26, 2018
* upstream/master:
  Shorten some docstrings.
  Be a bit more stringent on invalid inputs. (matplotlib#12627)
  Properly css-style exceptions in the documentation
  Deprecate passing drawstyle with linestyle as single string.
  update doc requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants