🚨 修复 pyright 类型报错

This commit is contained in:
2024-08-06 15:27:42 +08:00
parent 214ebc5073
commit cd9d29b748
4 changed files with 16 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ from hashlib import md5
from urllib.parse import urlencode
from arclet.alconna import Arg, ArgFlag
from nepattern import parser # type: ignore[import-untyped]
from nonebot_plugin_alconna import Args, Subcommand
from nonebot_plugin_alconna.uniseg import UniMessage
from nonebot_plugin_orm import get_session
@@ -27,7 +28,7 @@ command.add(
Args(
Arg(
'account',
get_player,
parser(get_player),
notice='TETR.IO 用户名 / ID',
flags=[ArgFlag.HIDDEN],
)