Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
There was a problem hiding this 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.)
No, because#22356 was targeted to 3.6 to start with. |
Ahh, good point! Just noted that#22884 was marked as 3.5.2, but then that is not a good idea! |
Uh oh!
There was an error while loading.Please reload this page.
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
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).