8000 gh-112328: Make EnumDict usable on its own and document it by encukou · Pull Request #123669 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112328: Make EnumDict usable on its own and document it #123669

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 13 commits into from
Dec 20, 2024
Merged
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