Skip to content

Commit

Permalink
py3.10 doesn't support StrEnum yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jrycw committed Mar 4, 2024
1 parent 372f94b commit c02c19a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/logging.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import logging
import sys
from enum import StrEnum
from enum import Enum
from typing import Any

import structlog
from structlog.types import EventDict, Processor # noqa: F401


class CLogLevel(StrEnum):
class CLogLevel(str, Enum):
DEBUG = "debug"
INFO = "info"
WARNING = "warning"
Expand Down
4 changes: 2 additions & 2 deletions fastui_app/logging.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import logging
import sys
from enum import StrEnum
from enum import Enum
from typing import Any

import structlog
from structlog.types import EventDict, Processor # noqa: F401


class CLogLevel(StrEnum):
class CLogLevel(str, Enum):
DEBUG = "debug"
INFO = "info"
WARNING = "warning"
Expand Down

0 comments on commit c02c19a

Please sign in to comment.