summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-01 20:16:27 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-01 20:44:07 +0100
commit1e6073e0eccb6ee0c261801fc8afcb9a80f80fad (patch)
treee0203a6ee36ff850b6d998cb7599fa2dbe77797e
parent5d5d6b7ed0d508015243c43c08650ffc1f6d4b33 (diff)
downloadpoezio-1e6073e0eccb6ee0c261801fc8afcb9a80f80fad.tar.gz
poezio-1e6073e0eccb6ee0c261801fc8afcb9a80f80fad.tar.bz2
poezio-1e6073e0eccb6ee0c261801fc8afcb9a80f80fad.tar.xz
poezio-1e6073e0eccb6ee0c261801fc8afcb9a80f80fad.zip
plugin_e2ee: ignore mypy failures with passthrough metaclass param
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index b0d9ec8c..02c19f4c 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -359,7 +359,7 @@ class E2EEPlugin(BasePlugin):
return None
return result
- async def _decrypt_wrapper(self, stanza: StanzaBase, tab: ChatTabs) -> Optional[StanzaBase]:
+ async def _decrypt_wrapper(self, stanza: Message, tab: ChatTabs) -> Optional[Message]:
"""
Wrapper around _decrypt() to handle errors and display the message after encryption.
"""
@@ -423,7 +423,7 @@ class E2EEPlugin(BasePlugin):
func = self.decrypt
if iscoroutinefunction(func):
# pylint: disable=unexpected-keyword-arg
- await func(message, jid, tab, passthrough=True)
+ await func(message, jid, tab, passthrough=True) # type: ignore
else:
# pylint: disable=unexpected-keyword-arg
func(message, jid, tab)