We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516d9e2 commit 4b8b76cCopy full SHA for 4b8b76c
astrbot/core/platform/sources/kook/kook_types.py
@@ -1,5 +1,5 @@
1
import json
2
-from enum import Enum, IntEnum
+from enum import IntEnum, StrEnum
3
from typing import Annotated, Any, Literal
4
5
from pydantic import BaseModel, ConfigDict, Field, model_validator
@@ -36,7 +36,7 @@ class KookMessageType(IntEnum):
36
SYSTEM = 255
37
38
39
-class KookModuleType(str, Enum):
+class KookModuleType(StrEnum):
40
PLAIN_TEXT = "plain-text"
41
KMARKDOWN = "kmarkdown"
42
IMAGE = "image"
@@ -311,7 +311,7 @@ class KookMessageSignal(IntEnum):
311
"""server->client resume ack"""
312
313
314
-class KookChannelType(str, Enum):
+class KookChannelType(StrEnum):
315
GROUP = "GROUP"
316
PERSON = "PERSON"
317
BROADCAST = "BROADCAST"
0 commit comments