django-planet
Dec. 21, 2022

Enum with `str` or `int` Mixin Breaking Change in Python 3.11

published by Anže
in blog Anže’s Blog
original entry Enum with `str` or `int` Mixin Breaking Change in Python 3.11

A change in how Python handles `str` and `int` mixins in Enum classes might break your code when you upgrade to Python 3.11.