-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-107957: Fix dir()
sample output in enum
docs
#107958
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
Conversation
Misc/NEWS.d/next/Documentation/2023-08-14-20-38-39.gh-issue-107957.DU3mID.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments:
A
.. versionchanged:: 3.11 | ||
Additional ``__dunder__`` names are returned for enums and enum members. | ||
Calling :func:`dir` on an enum member also returns the other members. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need versionchanged in a How To document
.. versionchanged:: 3.11 | |
Additional ``__dunder__`` names are returned for enums and enum members. | |
Calling :func:`dir` on an enum member also returns the other members. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I remove it? Note that there are 13 other occurrences of versionadded/versionchanged in the document
These issues have been handled elsewhere -- specifically, |
enum
docs display incorrect output fordir
#107957📚 Documentation preview 📚: https://cpython-previews--107958.org.readthedocs.build/