Skip to content
Snippets Groups Projects
Commit 7268bf6e authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Oups, subscribers func take a Message not a string

parent 888890ad
No related branches found
No related tags found
1 merge request!1First try of type hints
...@@ -37,8 +37,8 @@ FuncT = TypeVar("FuncT", Callable[[], None], Callable[[], Awaitable[None]]) ...@@ -37,8 +37,8 @@ FuncT = TypeVar("FuncT", Callable[[], None], Callable[[], Awaitable[None]])
# Function type w/ message as argument (subscribers), no return # Function type w/ message as argument (subscribers), no return
SubFuncT = TypeVar( SubFuncT = TypeVar(
"SubFuncT", "SubFuncT",
Callable[[str], None], Callable[['Message'], None],
Callable[[str], Awaitable[None]] Callable[['Message'], Awaitable[None]]
) )
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment