Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tweak argument checking in tripcolor().#22883

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 1 commit intomatplotlib:mainfromanntzer:tca
Apr 24, 2022
Merged

Conversation

anntzer
Copy link
Contributor

@anntzeranntzer commentedApr 23, 2022
edited
Loading

For incorrect number of parameters, switch to raising a (standard)
TypeError and use a standard-ish signature mismatch error message. Note
that exception type stability was already broken in 3.6 because it was
previously an IndexError (that was triggered later) and703b574 changed
that to a ValueError.

Also deprecate support for passing extra parameters (as we now tend to
do for all such overly accepting APIs). Note that the changelog entry
states that such parameters were previously silently ignored, even
though the patch replaces a warn_external() by a warn_deprecated(); this
is simply because the warn_external() wasn't present yet in the last
released version.

Alsocloses#22882.

PR Summary

PR Checklist

Tests and Styling

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

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

For incorrect number of parameters, switch to raising a (standard)TypeError and use a standard-ish signature mismatch error message.  Notethat exception type stability was already broken in 3.6 because it waspreviously an IndexError (that was triggered later) and703b574 changedthat to a ValueError.Also deprecate support for passing extra parameters (as we now tend todo for all such overly accepting APIs).  Note that the changelog entrystates that such parameters were previously silently ignored, eventhough the patch replaces a warn_external() by a warn_deprecated(); thisis simply because the warn_external() wasn't present yet in the lastreleased version.
Copy link
Member

@oscargusoscargus left a comment

Choose a reason for hiding this comment

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

Should we merge#22884 for 3.5.2 and this for 3.6.0?

(Feel free to merge once decided.)

@anntzer
Copy link
ContributorAuthor

No, because#22356 was targeted to 3.6 to start with.

@oscargus
Copy link
Member

Ahh, good point! Just noted that#22884 was marked as 3.5.2, but then that is not a good idea!

@oscargusoscargus merged commite142894 intomatplotlib:mainApr 24, 2022
@anntzeranntzer deleted the tca branchApril 24, 2022 12:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.6.0
Development

Successfully merging this pull request may close these issues.

Missingf prefix on f-strings
3 participants
@anntzer@oscargus@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp