Skip to content

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
@JukkaL JukkaL mentioned this pull request May 28, 2025
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.
cdce8p pushed a commit to cdce8p/mypy that referenced this pull request May 31, 2025
Type objects as enum values are supported at runtime.

Fixes python#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