-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Use repr
in error message Addresses #21959
#24403
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
Conversation
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.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping @matplotlib/developers
or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
Do you mind if I squash merge this PR, or would you like to? |
feel free to squash, sir. thanks for your help. |
Thanks @jefromyers! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. |
* use repr in error message closes matplotlib#21959 * add test for repr error message * fix formatting * clean up formatting and naming * add `pragma: no cover` * remove import and function name a bit more explicit
Implements the proposed solution in issue #21959. Error message now outputs the user’s input via
repr
.Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst