Skip to content

[3.11] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) - #106621

Merged
Yhg1s merged 1 commit into
python:3.11from
miss-islington:backport-95b7426-3.11
Jul 11, 2023
Merged

[3.11] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)#106621
Yhg1s merged 1 commit into
python:3.11from
miss-islington:backport-95b7426-3.11

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Jul 11, 2023

Copy link
Copy Markdown
Contributor

For example:

class Flag(enum.Flag):
A = 0x01
B = 0x02
MASK = 0xff
~Flag.MASK is Flag(0)

(cherry picked from commit 95b7426)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

…ist (pythonGH-106468)
For example:
class Flag(enum.Flag):
A = 0x01
B = 0x02
MASK = 0xff
~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@Yhg1s@bedevere-bot@ethanfurman