mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 19:11:00 +00:00
add some matcher function like nb1 session
This commit is contained in:
@ -37,9 +37,11 @@ PreProcessor = Callable[[Bot, Event, dict], Union[Awaitable[None],
|
||||
Awaitable[NoReturn]]]
|
||||
|
||||
Matcher = TypeVar("Matcher", bound="MatcherClass")
|
||||
Handler = Callable[[Bot, Event, Dict[Any, Any]], Union[Awaitable[None],
|
||||
Awaitable[NoReturn]]]
|
||||
Handler = Callable[[Bot, Event, dict], Union[Awaitable[None],
|
||||
Awaitable[NoReturn]]]
|
||||
Rule = TypeVar("Rule", bound="RuleClass")
|
||||
RuleChecker = Callable[[Bot, Event, dict], Awaitable[bool]]
|
||||
Permission = TypeVar("Permission", bound="PermissionClass")
|
||||
PermissionChecker = Callable[[Bot, Event], Awaitable[bool]]
|
||||
ArgsParser = Callable[[Bot, Event, dict], Union[Awaitable[None],
|
||||
Awaitable[NoReturn]]]
|
||||
|
Reference in New Issue
Block a user