Skip to content

EnumType is not documented as new in 3.11 #107700

@tim-mitchell

Description

@tim-mitchell

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

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions