Skip to content

Allow enum members to have type objects as values #19160

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

Merged
merged 1 commit into from
May 28, 2025
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented May 28, 2025

Type objects as enum values are supported at runtime.

Fixes #19151.

Type objects as enum values are supported at runtime.

Fixes #19151.
@JukkaL JukkaL requested a review from sobolevn May 28, 2025 12:18
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit 568a638 into master May 28, 2025
18 checks passed
@JukkaL JukkaL deleted the enum-type-obj-member branch May 28, 2025 13:32
JukkaL added a commit that referenced this pull request May 29, 2025
Type objects as enum values are supported at runtime.

Fixes #19151.
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.

[1.16 regression] determining exhaustive match on an enum with type members
2 participants