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

gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist #106468

Merged
merged 2 commits into from
Jul 11, 2023

Commits on Jul 5, 2023

  1. Fix flag mask inversion when unnamed flags exist.

    For example:
    
        class Flag(enum.Flag):
            A = 0x01
            B = 0x02
            MASK = 0xff
    
        ~Flag.MASK is Flag(0)
    ethanfurman committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    a6beb03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    758de5f View commit details
    Browse the repository at this point in the history