plugin_e2ee: ignore mypy failures with passthrough metaclass param

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-01 20:16:27 +01:00
parent 5d5d6b7ed0
commit 1e6073e0ec

View file

@ -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)