-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
gh-105497: [Enum] Fix flag inversion when alias/mask members exist. #105542
Conversation
ethanfurman
commented
Jun 9, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: 3.11.4: ValueError when inverting enum.Flag member with mask member #105497
Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry @ethanfurman, I had trouble checking out the |
GH-105571 is a backport of this pull request to the 3.11 branch. |
Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…ist. (pythonGH-105542) When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases. (cherry picked from commit 59f009e) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
GH-105572 is a backport of this pull request to the 3.12 branch. |
…ist. (pythonGH-105542) When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases. (cherry picked from commit 59f009e) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
…xist. (GH-105542) (#105572) gh-105497: [Enum] Fix Flag inversion when alias/mask members exist. (GH-105542) When inverting a Flag member (or boundary STRICT), only consider other canonical flags; when inverting an IntFlag member (or boundary KEEP), also consider aliases. (cherry picked from commit 59f009e) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>