diff options
Diffstat (limited to 'poezio/fixes.py')
-rw-r--r-- | poezio/fixes.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/fixes.py b/poezio/fixes.py index f8de7b14..a9e15dee 100644 --- a/poezio/fixes.py +++ b/poezio/fixes.py @@ -5,7 +5,8 @@ upstream. TODO: Check that they are fixed and remove those hacks """ -from slixmpp.stanza import Message +from typing import Callable, Any +from slixmpp import Message, Iq, ClientXMPP from slixmpp.xmlstream import ET import logging @@ -25,7 +26,7 @@ def has_identity(xmpp, jid, identity, on_true=None, on_false=None): xmpp.plugin['xep_0030'].get_info(jid=jid, callback=_cb) -def get_room_form(xmpp, room, callback): +def get_room_form(xmpp: ClientXMPP, room: str, callback: Callable[[Iq], Any]): def _cb(result): if result["type"] == "error": return callback(None) |