style: cleanup

This commit is contained in:
Soulter
2025-03-03 13:51:41 +08:00
parent 49bba9bf98
commit 3cac6a47a5
3 changed files with 1 additions and 7 deletions

View File

@@ -9,8 +9,4 @@ __all__ = [
"register",
"Context",
"Star",
"DEFAULT_CONFIG",
"VERSION",
"DB_PATH",
"AstrBotConfig",
]

View File

@@ -201,11 +201,9 @@ class AstrMessageEvent(abc.ABC):
async def _pre_send(self):
"""调度器会在执行 send() 前调用该方法"""
pass
async def _post_send(self):
"""调度器会在执行 send() 后调用该方法"""
pass
def set_result(self, result: Union[MessageEventResult, str]):
"""设置消息事件的结果。

View File

@@ -36,7 +36,7 @@ def validate_config(
value = data[key]
# null 转换
if value is None:
data[key] = DEFAULT_VALUE_MAP(meta["type"])
data[key] = DEFAULT_VALUE_MAP[meta["type"]]
continue
# 递归验证
if meta["type"] == "list" and isinstance(value, list):