diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2022-08-21 17:34:07 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2022-08-21 20:57:26 +0200 |
commit | f3a751b3953032a8eb73af96a725cef902bde020 (patch) | |
tree | 7eb9173caaec479ab124be24ed605814ae5d23b0 /poezio/fixes.py | |
parent | 940f5e0c8a695048e6b7dfd3dd13e49e0c3476a5 (diff) | |
download | poezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.gz poezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.bz2 poezio-f3a751b3953032a8eb73af96a725cef902bde020.tar.xz poezio-f3a751b3953032a8eb73af96a725cef902bde020.zip |
mypy: Type some more things
This lets us pass under mypy 0.971, and is yet another step towards
mypyc compatibility perhaps.
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 7383154f..c2db4332 100644 --- a/poezio/fixes.py +++ b/poezio/fixes.py @@ -5,14 +5,15 @@ upstream. TODO: Check that they are fixed and remove those hacks """ -from slixmpp import ClientXMPP, Message +from slixmpp import Message +from slixmpp.plugins.xep_0184 import XEP_0184 import logging log = logging.getLogger(__name__) -def _filter_add_receipt_request(self: ClientXMPP, stanza): +def _filter_add_receipt_request(self: XEP_0184, stanza): """ Auto add receipt requests to outgoing messages, if: |