From ae88fccf13ebaaa00eb138573866d1ae7b86890b Mon Sep 17 00:00:00 2001 From: StNicolay Date: Tue, 3 Jan 2023 12:34:54 +0300 Subject: [PATCH] Updated type hint of the handler in the register_state function --- src/bot/helper_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/helper_functions.py b/src/bot/helper_functions.py index 0117695..3b40cf2 100644 --- a/src/bot/helper_functions.py +++ b/src/bot/helper_functions.py @@ -18,7 +18,7 @@ states: dict[tuple[int, int], Handler] = {} def register_state( message: Message, - handler: Callable[[Message], Any], + handler: Handler, ) -> None: states[(message.chat.id, message.from_user.id)] = handler