Adjust type hints

This commit is contained in:
Richard Chien
2019-01-25 19:11:18 +08:00
parent 78d48fb163
commit bd1c272eec
4 changed files with 16 additions and 15 deletions

View File

@ -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]]]