improve state detect #677

This commit is contained in:
yanyongyu
2022-01-10 11:20:06 +08:00
parent a14cfc8d77
commit 2ccdc218e0
3 changed files with 16 additions and 23 deletions

View File

@ -3,7 +3,6 @@ from typing import List, Tuple
from nonebot.typing import T_State
from nonebot.adapters import Message
from nonebot.params import (
State,
Command,
RegexDict,
CommandArg,
@ -15,7 +14,7 @@ from nonebot.params import (
)
async def state(x: T_State = State()) -> T_State:
async def state(x: T_State) -> T_State:
return x