mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
Adjust type hints
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from typing import Union, List, Dict, Any, Sequence, Callable, Tuple
|
||||
from typing import Union, List, Dict, Any, Sequence, Callable, Tuple, Awaitable
|
||||
|
||||
Context_T = Dict[str, Any]
|
||||
Message_T = Union[str, Dict[str, Any], List[Dict[str, Any]]]
|
||||
@ -6,3 +6,4 @@ 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]]]
|
||||
|
Reference in New Issue
Block a user