Skip to content

Renamed ChoicesMeta to ChoicesType.#17249

Merged
felixxm merged 1 commit intodjango:mainfrom
felixxm:enum-meta
Sep 12, 2023
Merged

Renamed ChoicesMeta to ChoicesType.#17249
felixxm merged 1 commit intodjango:mainfrom
felixxm:enum-meta

Conversation

@felixxm
Copy link
Copy Markdown
Member

@felixxm felixxm commented Sep 12, 2023

This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed EnumMeta to EnumType. While the former is still available as an alias of the latter for now, let's prefer the canonical name for this.

Check out https://docs.python.org/3/library/enum.html#enum.EnumType

This also uses enum.EnumType for Python 3.11+ as Python 3.11 renamed
EnumMeta to EnumType. While the former is still available as an alias
of the latter for now, let's prefer the canonical name for this.

Check out https://docs.python.org/3/library/enum.html#enum.EnumType
@felixxm felixxm merged commit e151749 into django:main Sep 12, 2023
@felixxm felixxm deleted the enum-meta branch September 12, 2023 10:48
@felixxm felixxm temporarily deployed to schedules September 13, 2023 02:43 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants