fix: using Enum instead of StrEnum (>=3.11 only)

This commit is contained in:
Mose Müller
2023-10-11 13:46:15 +02:00
parent 26a366842a
commit a8b14180ad
2 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
from enum import StrEnum
from enum import Enum
class ColouredEnum(StrEnum):
class ColouredEnum(Enum):
"""
Represents a UI element that can display colour-coded text based on its value.
This class extends the standard StrEnum but requires its values to be valid CSS
This class extends the standard Enum but requires its values to be valid CSS
colour codes. Supported colour formats include:
- Hexadecimal colours
- Hexadecimal colours with transparency