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

Fix activation lookup with Python 3.12.3 #375

Merged
merged 1 commit into from
Apr 17, 2024

Commits on Apr 17, 2024

  1. Fix activation lookup with Python 3.12.3

    We used the metaclass `EnumMeta`/`EnumType` to override reporting of
    missing enum values (to give the full set of supported activations).
    However, in Python 3.12.3, the default value of the `name` parameter of
    `EnumType.__call__` method was changed from `None` to `_not_given`:
    
    python/cpython@d771729
    
    Even though this is a public API (which now uses a private default
    value), it seems too risky to continue using it. So in this change, we
    implement `Enum.__mising__` instead for the improved error reporting.
    danieldk committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    f778dcc View commit details
    Browse the repository at this point in the history