mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Hint the correct type
This commit is contained in:
parent
ff3dd4a3ba
commit
6fa8375cb5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user