core/handlers: Add typing annotations

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent d4d05aec
......@@ -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:
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment