From 1e6073e0eccb6ee0c261801fc8afcb9a80f80fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 1 Mar 2022 20:16:27 +0100 Subject: plugin_e2ee: ignore mypy failures with passthrough metaclass param MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 4 ++-- 1 file 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) -- cgit v1.2.3