summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-01-12 12:20:57 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2020-01-12 13:28:38 +0100
commit0a131fcc5bda900e2a0dc1215f901f936f835e64 (patch)
treea98864c41afb109bb22acb6bec6ad8b980682a20
parenta7ab0cf59da50bafdeaafe36ff3fe3c206075e95 (diff)
downloadpoezio-0a131fcc5bda900e2a0dc1215f901f936f835e64.tar.gz
poezio-0a131fcc5bda900e2a0dc1215f901f936f835e64.tar.bz2
poezio-0a131fcc5bda900e2a0dc1215f901f936f835e64.tar.xz
poezio-0a131fcc5bda900e2a0dc1215f901f936f835e64.zip
Some more typing for is_known_muc_pm
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/core/handlers.py4
1 files changed, 3 insertions, 1 deletions
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
"""