plugin_e2ee: ignore mypy failures with passthrough metaclass param
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
5d5d6b7ed0
commit
1e6073e0ec
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue