mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 17:43:32 +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
|
self.update_handler = None
|
||||||
|
|
||||||
# TODO: Better update handler
|
# TODO: Better update handler
|
||||||
def set_update_handler(self, callback):
|
def set_update_handler(self, callback: callable):
|
||||||
self.update_handler = callback
|
self.update_handler = callback
|
||||||
|
|
||||||
def send(self, data: Object):
|
def send(self, data: Object):
|
||||||
|
Loading…
Reference in New Issue
Block a user