Updated type hint of the handler in the register_state function
This commit is contained in:
parent
e29eefe40b
commit
ae88fccf13
@ -18,7 +18,7 @@ states: dict[tuple[int, int], Handler] = {}
|
|||||||
|
|
||||||
def register_state(
|
def register_state(
|
||||||
message: Message,
|
message: Message,
|
||||||
handler: Callable[[Message], Any],
|
handler: Handler,
|
||||||
) -> None:
|
) -> None:
|
||||||
states[(message.chat.id, message.from_user.id)] = handler
|
states[(message.chat.id, message.from_user.id)] = handler
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user