From 6fa8375cb5228f684eba84c945e765b0d2cb8175 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 12 Dec 2017 08:07:31 +0100 Subject: [PATCH] Hint the correct type --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index d6979c6d..81693d70 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -84,7 +84,7 @@ class Client: self.update_handler = None # TODO: Better update handler - def set_update_handler(self, callback): + def set_update_handler(self, callback: callable): self.update_handler = callback def send(self, data: Object):