Skip to content

Commit

Permalink
fix: str enum in run entrypoint (breaking change in Python3.11)
Browse files Browse the repository at this point in the history
- use enum.auto in the printing utility to ensure that enum values are displayed correctly in str formatting (due to a change in Python 3.11, the enum name was displayed instead of the str value).
  • Loading branch information
LennyN95 committed Sep 17, 2024
1 parent 1e75209 commit 9ac584c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mhubio/utils/printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-------------------------------------------------
"""

from enum import Enum
import enum

class f(str, Enum):
class f(enum.auto):
chead = '\033[95m'
cyan = '\033[96m'
cgray = '\033[30m'
Expand Down

0 comments on commit 9ac584c

Please sign in to comment.