Skip to content

Commit 02525e8

Browse files
authored
🎨 Fix enum style (#140)
1 parent 12bb690 commit 02525e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/utils/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ast
22
import os
33
import sys
4-
from enum import Enum
4+
from enum import StrEnum
55
from typing import Any, Literal
66

77
import orjson
@@ -72,14 +72,14 @@ def _parse_json_string(cls, v: Any) -> Any:
7272
return v
7373

7474

75-
class OversizedContextStrategy(str, Enum):
75+
class OversizedContextStrategy(StrEnum):
7676
"""Strategy for handling oversized context."""
7777

7878
COMPACTION = "compaction"
7979
FILE = "file"
8080

8181

82-
class ChatMode(str, Enum):
82+
class ChatMode(StrEnum):
8383
"""Chat mode options for Gemini conversation handling."""
8484

8585
NORMAL = "normal"

0 commit comments

Comments
 (0)