mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🔥 删除不必要的类型转换
上游修了hhh
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from arclet.alconna import Arg, ArgFlag
|
||||
from nepattern import parser # type: ignore[import-untyped]
|
||||
from nonebot_plugin_alconna import Args, At, Subcommand
|
||||
|
||||
from ...utils.exception import MessageFormatError
|
||||
@@ -23,7 +22,7 @@ command.add(
|
||||
Args(
|
||||
Arg(
|
||||
'account',
|
||||
parser(get_player),
|
||||
get_player,
|
||||
notice='TOP 用户名 / ID',
|
||||
flags=[ArgFlag.HIDDEN],
|
||||
)
|
||||
@@ -35,13 +34,13 @@ command.add(
|
||||
Args(
|
||||
Arg(
|
||||
'target',
|
||||
parser(At | Me),
|
||||
At | Me,
|
||||
notice='@想要查询的人 / 自己',
|
||||
flags=[ArgFlag.HIDDEN, ArgFlag.OPTIONAL],
|
||||
),
|
||||
Arg(
|
||||
'account',
|
||||
parser(get_player),
|
||||
get_player,
|
||||
notice='TOP 用户名',
|
||||
flags=[ArgFlag.HIDDEN, ArgFlag.OPTIONAL],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user