equinor / webviz-ert

ERT webviz plugins
GNU General Public License v3.0
12 stars 24 forks source link

Make webviz-ert compatible with python3.11 #449

Closed larsevj closed 10 months ago

larsevj commented 10 months ago

Issue Resolves #https://github.com/equinor/ert/issues/6574

Approach Short description of the approach

Pre review checklist

larsevj commented 10 months ago

One idea for resolving the issue caused by changes to enums in Python 3.11. The changes are mentioned here: https://github.com/python/cpython/issues/100458 https://discuss.python.org/t/inconsistent-behavior-with-python-3-11-enum-mixin-class-behavior/24613 https://docs.python.org/3.11/whatsnew/3.11.html

larsevj commented 10 months ago

Note that with the changes I made there is still a difference between the data models for python pre 3.11 and after: With Python 3.10:

With python 3.11 this becomes: