Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-117146: Expose/document warnings.WarningMessage#117147
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as spam.
This comment was marked as spam.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Reviewers: note that the discussion is still ongoing, it has not be agreed to expose the type (rather than just the interface of the object returned). |
Thanks@merwok for adding the do not merge label. Additional discussion is in this Discourse thread:https://discuss.python.org/t/warningmessage-is-undocumented/48877/1 |
Uh oh!
There was an error while loading.Please reload this page.
gh-117146: Expose/document warnings.WarningMessage
This change exposes
warnings.WarningMessage
as it is already returned by a public facing function:catch_warnings
. Mention it in the docs and add it to__all__
📚 Documentation preview 📚:https://cpython-previews--117147.org.readthedocs.build/