From 01bca5cccd9270d5d98c12c781db5046df99d845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 10 Oct 2019 14:58:30 +0200 Subject: core/handlers: Add typing annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/core/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio') 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 """ -- cgit v1.2.3