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

Change exception types, improve argument checking, and cleanups in mpl_toolkits by oscargus · Pull Request #23550 · matplotlib/matplotlib · GitHub

Repository navigation

Change exception types, improve argument checking, and cleanups in mpl_toolkits - #23550

Merged
QuLogic merged 4 commits into
matplotlib:mainfrom
oscargus:mpltoolkitcleanups
Aug 5, 2022
Merged

QuLogic merged 4 commits into
matplotlib:mainfrom
oscargus:mpltoolkitcleanups

Conversation

oscargus commented Aug 4, 2022 •
edited
Loading

Copy link
Copy Markdown
Member

PR Summary

Raise a more exact type.

Better argument checking.

Minor cleanups.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

oscargus force-pushed the mpltoolkitcleanups branch 2 times, most recently from 00be652 to a95cf32 Compare August 4, 2022 09:44
oscargus added Maintenance API: changes Changes to the public API, typically requiring deprecation. labels Aug 4, 2022
oscargus force-pushed the mpltoolkitcleanups branch from a95cf32 to 3e8c347 Compare August 4, 2022 11:03
oscargus changed the title Change exception types and cleanups Change exception types, improve argument checking, and cleanups Aug 4, 2022
oscargus changed the title Change exception types, improve argument checking, and cleanups Change exception types, improve argument checking, and cleanups in mpl_toolkits Aug 4, 2022
oscargus marked this pull request as ready for review August 4, 2022 11:53
@@ -48,6 +49,7 @@ def __init__(self, fig, pos, horizontal, vertical,
self._horizontal = horizontal
self._vertical = vertical
self._anchor = anchor

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can drop this line now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Won't some code quality tools complain if it is defined outside of __init__? That was the reason anyway.

tacaswell added this to the v3.6.0 milestone Aug 4, 2022
oscargus force-pushed the mpltoolkitcleanups branch from 3e8c347 to ad27ad7 Compare August 4, 2022 20:21
oscargus force-pushed the mpltoolkitcleanups branch from ad27ad7 to e94dfed Compare August 4, 2022 21:22
QuLogic merged commit 80d79eb into matplotlib:main Aug 5, 2022
oscargus deleted the mpltoolkitcleanups branch August 5, 2022 08:29
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

Labels

API: changes Changes to the public API, typically requiring deprecation. Maintenance topic: mpl_toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL