Files
nonebot2/tests/plugins/param/priority.py
2026-02-18 00:11:36 +08:00

21 lines
475 B
Python

from nonebot.adapters import Bot, Event, Message
from nonebot.matcher import Matcher
from nonebot.params import Arg, Depends
from nonebot.typing import T_State
def dependency():
return 1
async def complex_priority(
sub: int = Depends(dependency),
bot: Bot | None = None,
event: Event | None = None,
state: T_State = {},
matcher: Matcher | None = None,
arg: Message = Arg(),
exception: Exception | None = None,
default: int = 1,
): ...