Skip to content

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

Merged
picnixz merged 3 commits into
python:3.12from
picnixz:bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045
Mar 24, 2025
Merged

picnixz merged 3 commits into
python:3.12from
picnixz:bp-312/17d06aeb5476099bc1acd89cd6f69e239e0f9350/enum-131045

Conversation

@picnixz

@picnixz picnixz commented Mar 14, 2025

Copy link
Copy Markdown
Member

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 ethan@stoneleaf.us
Co-authored-by: Tomas R. tomas.roun8@gmail.com

…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. <tomas.roun8@gmail.com>
@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
@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

2 participants