style: cleanup
This commit is contained in:
1 parent
49bba9bf98
commit
3cac6a47a5
3 files changed
+1
-7
No files matched your search
@@ -9,8 +9,4 @@ __all__ = [
|
||||
"register",
|
||||
"Context",
|
||||
"Star",
|
||||
"DEFAULT_CONFIG",
|
||||
"VERSION",
|
||||
"DB_PATH",
|
||||
"AstrBotConfig",
|
||||
]
|
||||
@@ -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]):
|
||||
"""设置消息事件的结果。
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user