From 0a131fcc5bda900e2a0dc1215f901f936f835e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 12 Jan 2020 12:20:57 +0100 Subject: Some more typing for is_known_muc_pm 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, 3 insertions(+), 1 deletion(-) (limited to 'poezio/core/handlers.py') diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index cfa5a147..d6a4c8b9 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -5,6 +5,8 @@ XMPP-related handlers for the Core class import logging log = logging.getLogger(__name__) +from typing import Optional + import asyncio import curses import functools @@ -103,7 +105,7 @@ class HandlerCore: self.core.xmpp['xep_0030'].get_info_from_domain(), ) - def is_known_muc_pm(self, message: Message, with_jid: JID): + def is_known_muc_pm(self, message: Message, with_jid: JID) -> Optional[bool]: """ 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