Skip to content

EnumType is not documented as new in 3.11 #107700

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
tim-mitchell opened this issue Aug 6, 2023 · 3 comments
Closed

EnumType is not documented as new in 3.11 #107700

tim-mitchell opened this issue Aug 6, 2023 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@tim-mitchell
Copy link

tim-mitchell commented Aug 6, 2023

Documentation

In python 3.10 and earlier Enum's metaclass was called EnumMeta. https://docs.python.org/3.10/library/enum.html#enum-classes
In python 3.11 this was renamed EnumType (https://docs.python.org/3.11/whatsnew/3.11.html#enum).
However the fact that EnumType was introduced in Python 3.11 is not mentioned. https://docs.python.org/3.10/library/enum.html#enum-classes
Nor is the fact that EnumMeta still exists as an alias.

This would be useful to document.

Linked PRs

@tim-mitchell tim-mitchell added the docs Documentation in the Doc dir label Aug 6, 2023
@sobolevn
Copy link
Member

Looks like EnumType is documented: https://docs.python.org/3.11/library/enum.html#enum.EnumType

@AA-Turner
Copy link
Member

@sobolevn -- I think the point is more that a .. versionadded:: 3.11 directive is missing.

A

sobolevn added a commit to sobolevn/cpython that referenced this issue Aug 22, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 22, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 22, 2023
ambv pushed a commit that referenced this issue Aug 22, 2023
ambv pushed a commit that referenced this issue Aug 22, 2023
@hugovk
Copy link
Member

hugovk commented Nov 9, 2023

Thank you!

@hugovk hugovk closed this as completed Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

5 participants