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

Python 3.11 compatibility #107

Merged
merged 6 commits into from
Jul 3, 2023
Merged

Python 3.11 compatibility #107

merged 6 commits into from
Jul 3, 2023

Commits on Jun 30, 2023

  1. Remove __init__ for DataType base class due to behaviour change in Py…

    …thon 3.11
    
    Enum values do now have the type of mixin classes, which DataType is for BasicType. Consequently, instantiation fails and
    the class does not work in Python 3.11 and later. Some of that behaviour is also buggy, see the discussion in
    https://discuss.python.org/t/inconsistent-behavior-with-python-3-11-enum-mixin-class-behavior/24613/4
    
    Removing the init routine restores the desired behaviour, although we do now no longer ensure that the base class has not
    been instantiated directly.
    reuterbal committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    cb15a62 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c6bf5e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52b3584 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    69b7053 View commit details
    Browse the repository at this point in the history
  5. Inherit BasicType from int+Enum to retain original str behaviour

    This is due to PEP 663, which changed the string output to the basic integer value
    reuterbal committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    46270f6 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    faaddcc View commit details
    Browse the repository at this point in the history