summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-10-10 14:58:30 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-10-10 14:58:30 +0200
commit01bca5cccd9270d5d98c12c781db5046df99d845 (patch)
treee371dc3950ca5bd1138dda9bb6f8fde7f793e15c
parentd4d05aec0371008557a73348c975861c6b0cb707 (diff)
downloadpoezio-01bca5cccd9270d5d98c12c781db5046df99d845.tar.gz
poezio-01bca5cccd9270d5d98c12c781db5046df99d845.tar.bz2
poezio-01bca5cccd9270d5d98c12c781db5046df99d845.tar.xz
poezio-01bca5cccd9270d5d98c12c781db5046df99d845.zip
core/handlers: Add typing annotations
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index da94f093..3ae9420b 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -19,7 +19,7 @@ from os import path
import pyasn1.codec.der.decoder
import pyasn1.codec.der.encoder
import pyasn1_modules.rfc2459
-from slixmpp import InvalidJID
+from slixmpp import InvalidJID, JID, Message
from slixmpp.xmlstream.stanzabase import StanzaBase, ElementBase
from xml.etree import ElementTree as ET
@@ -102,7 +102,7 @@ class HandlerCore:
self.core.xmpp['xep_0030'].get_info_from_domain(),
)
- def is_known_muc_pm(self, message, with_jid):
+ def is_known_muc_pm(self, message: Message, with_jid: JID):
"""
Try to determine whether a given message is a MUC-PM, without a roundtrip. Returns None when it's not clear
"""