Skip to content

Conversation

@csm10495
Copy link
Contributor

@csm10495 csm10495 commented Mar 22, 2024

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/

@sdjkkfv

This comment was marked as spam.

csm10495 and others added 2 commits March 22, 2024 07:43
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@merwok
Copy link
Member

merwok commented Mar 22, 2024

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).

@willingc
Copy link
Contributor

willingc commented Apr 8, 2024

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

@picnixz
Copy link
Member

picnixz commented Aug 25, 2025

I'm propose to close this one until the DPO thread has evolved (there are also conflicts). In addition, the attributes are already partly documented.

@csm10495 csm10495 closed this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants