Skip to content
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

[3.12] gh-131045: [Enum] fix flag containment checks when using values (GH-131053) #131232

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Mar 14, 2025

Check would fail if value would create a pseudo-member, but that member
had not yet been created. We now attempt to create a pseudo-member for
a passed-in value first.
(cherry picked from commit 17d06ae)

Co-authored-by: Ethan Furman [email protected]
Co-authored-by: Tomas R. [email protected]

…pythonGH-131053)

Check would fail if value would create a pseudo-member, but that member
had not yet been created.  We now attempt to create a pseudo-member for
a passed-in value first.

Co-authored-by: Tomas R. <[email protected]>
@picnixz picnixz marked this pull request as ready for review March 14, 2025 11:44
@picnixz picnixz self-assigned this Mar 23, 2025
@picnixz picnixz merged commit 8a9aee7 into python:3.12 Mar 24, 2025
28 checks passed
@picnixz picnixz deleted the bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045 branch March 24, 2025 09:31
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