nonebot2/nonebot/typing.py
2020-03-15 22:48:22 +08:00

9 lines
336 B
Python

from typing import Union, List, Dict, Any, Sequence, Callable, Tuple, Awaitable
Message_T = Union[str, Dict[str, Any], List[Dict[str, Any]]]
Expression_T = Union[str, Sequence[str], Callable]
CommandName_T = Tuple[str, ...]
CommandArgs_T = Dict[str, Any]
State_T = Dict[str, Any]
Filter_T = Callable[[Any], Union[Any, Awaitable[Any]]]