Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 12, 2025

  • Docs: Move Enum functions and add examples

When the Enum functions _add_alias_ and _add_value_alias_ were added in de6bca9, the documentation for them was done under EnumType instead of Enum.

This change moves them to the docs of the Enum class and adds an example for each function.


(cherry picked from commit 003bd8c)

Co-authored-by: RafaelWO [email protected]
Co-authored-by: Ethan Furman [email protected]


📚 Documentation preview 📚: https://cpython-previews--137688.org.readthedocs.build/

…-136791)

* Docs: Move Enum functions and add examples

When the `Enum` functions `_add_alias_` and `_add_value_alias_` were added in de6bca9, the documentation for them was done under `EnumType` instead of `Enum`.

This change moves them to the docs of the `Enum` class and adds an example for each function.

---------
(cherry picked from commit 003bd8c)

Co-authored-by: RafaelWO <[email protected]>
Co-authored-by: Ethan Furman <[email protected]>
@hugovk hugovk merged commit 4b093e1 into python:3.14 Sep 11, 2025
40 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news sprint
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants