Skip to content

gh-104235: Fix documentation for enum.Enum.__dir__ #104237

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

Closed
wants to merge 1 commit into from

Conversation

chgnrdv
Copy link
Contributor

@chgnrdv chgnrdv commented May 6, 2023

Fixes #104235

  • mention in doc text that method also returns public members defined on enum class
  • add __eq__ and __hash__ to return value in doc text
  • add enum members to return value in example

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

* mention in doc text that method also returns public members defined on enum class
* add `__eq__` and `__hash__` to return value in doc text
* add enum members to return value in example
@chgnrdv
Copy link
Contributor Author

chgnrdv commented Aug 15, 2023

Closing this in favor of #107958, which covers additional cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enum.Enum.__dir__ docs do not mention enum members in return value
2 participants