mlte-team / mlte

An infrastructure for evaluating machine learning models.
http://mlte.rtfd.io/
MIT License
10 stars 3 forks source link

Add Support for Python 3.11 #415

Closed sebastian-echeverria closed 4 months ago

sebastian-echeverria commented 5 months ago

Add support for Python 3.11. More explicitly:

sebastian-echeverria commented 5 months ago

Python 3.11 breaks enums of the type EnumClass(str, Enum), since formatting to string behavior is different (see https://blog.pecar.me/python-enum). Easiest way to solve and maintain backwards and forward compatibility is to replace (str, Enum) with (StrEnum) from StrEnum library (instead of thew new StrEnum from Python 3.11).

sebastian-echeverria commented 4 months ago

Addressed in #434