Remove wrong return types for now; Remove unused JID import

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-02-27 13:34:40 +00:00
parent 36e385a6ea
commit 7449e5c908
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -17,7 +17,7 @@ import logging
from getpass import getpass from getpass import getpass
from argparse import ArgumentParser from argparse import ArgumentParser
from slixmpp import ClientXMPP, JID from slixmpp import ClientXMPP
from slixmpp.stanza import Message from slixmpp.stanza import Message
from slixmpp_omemo import PluginCouldNotLoad, MissingOwnKey, EncryptionPrepareException from slixmpp_omemo import PluginCouldNotLoad, MissingOwnKey, EncryptionPrepareException
from slixmpp_omemo import UndecidedException, UntrustedException, NoAvailableSession from slixmpp_omemo import UndecidedException, UntrustedException, NoAvailableSession
@ -131,7 +131,7 @@ class EchoBot(ClientXMPP):
return None return None
async def plain_reply(self, original_msg, body) -> None: async def plain_reply(self, original_msg, body):
""" """
Helper to reply to messages Helper to reply to messages
""" """
@ -142,7 +142,7 @@ class EchoBot(ClientXMPP):
msg['body'] = body msg['body'] = body
return msg.send() return msg.send()
async def encrypted_reply(self, original_msg, body) -> None: async def encrypted_reply(self, original_msg, body):
"""Helper to reply with encrypted messages""" """Helper to reply with encrypted messages"""
mto = original_msg['from'] mto = original_msg['from']