2019-01-25 19:11:18 +08:00
|
|
|
from typing import Union, List, Dict, Any, Sequence, Callable, Tuple, Awaitable
|
2018-10-16 01:03:50 +08:00
|
|
|
|
2020-03-16 20:24:50 +08:00
|
|
|
Context_T = Dict[str, Any]
|
2018-10-16 01:03:50 +08:00
|
|
|
Message_T = Union[str, Dict[str, Any], List[Dict[str, Any]]]
|
|
|
|
Expression_T = Union[str, Sequence[str], Callable]
|
2018-11-10 10:16:59 +08:00
|
|
|
CommandName_T = Tuple[str, ...]
|
2019-01-25 18:30:44 +08:00
|
|
|
CommandArgs_T = Dict[str, Any]
|
2020-04-20 13:50:38 +08:00
|
|
|
CommandHandler_T = Callable[["CommandSession"], Any]
|
2019-01-25 00:13:53 +08:00
|
|
|
State_T = Dict[str, Any]
|
2019-01-25 19:11:18 +08:00
|
|
|
Filter_T = Callable[[Any], Union[Any, Awaitable[Any]]]
|