🔥 删除不必要的类型转换

上游修了hhh
This commit is contained in:
2024-08-06 16:35:35 +08:00
parent 8bb460fce0
commit b7cbe2b2a0
5 changed files with 11 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
from arclet.alconna import Arg
from nepattern import parser # type: ignore[import-untyped]
from nonebot_plugin_alconna import Option, Subcommand
from nonebot_plugin_alconna.uniseg import UniMessage
from nonebot_plugin_orm import async_scoped_session
@@ -19,7 +18,7 @@ command.add(
'config',
Option(
'--default-template',
Arg('template', parser(Template), notice='模板版本'),
Arg('template', Template, notice='模板版本'),
alias=['-DT', 'DefaultTemplate'],
help_text='设置默认查询模板',
),