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 8000 #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
Update description
  • Loading branch information
u2rafi committed Jul 28, 2024
commit e8c368ef9bf2ae1ac2eda0a62650ef28d00fd50c
4 changes: 2 additions & 2 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Module Contents

:class:`EnumDict`

An enum class :class:`dict` that tracks order and enforces unique member names.
A subclass of :class:`dict` that tracks order and enforces unique member names.

:class:`EnumType`

Expand Down Expand Up @@ -165,7 +165,7 @@ Data Types

.. class:: EnumDict

*EnumDict* is used by *EnumType* to keep track of the enum member orders and prevent reusing the member names.
*EnumDict* is a subclass of :class:`dict` that keeps track of the order of enum members and prevents reusing member names. Use *EnumDict* when member names must be unique and their order needs to be preserved.

.. attribute:: EnumDict.member_names

Expand Down
Loading
0