8000 gh-112328: Document EnumDict in docs and release notes by u2rafi · Pull Request #121720 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112328: Document EnumDict in docs and release notes #121720

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

Merged
merged 6 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore deleted EnumType
  • Loading branch information
u2rafi committed Jul 14, 2024
commit 3bff0b954adddedc766cf8309d06b62e7d9e139f
2 changes: 2 additions & 0 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ Data Types
to subclass *EnumType* -- see :ref:`Subclassing EnumType <enumtype-examples>`
for details.

.. class:: EnumType

``EnumType`` is responsible for setting the correct :meth:`!__repr__`,
:meth:`!__str__`, :meth:`!__format__`, and :meth:`!__reduce__` methods on the
final *enum*, as well as creating the enum members, properly handling
Expand Down
Loading
0