Remove self: Any mypy annotations

This commit is contained in:
fredfishgames 2017-12-08 16:39:59 +00:00 committed by showell
parent 5f70e17259
commit 4c4a60d90f
8 changed files with 26 additions and 26 deletions

View file

@ -2,7 +2,7 @@
from typing import Any, Dict
class HelpHandler(object):
def usage(self: Any) -> str:
def usage(self) -> str:
return '''
This plugin will give info about Zulip to
any user that types a message saying "help".
@ -12,7 +12,7 @@ class HelpHandler(object):
your Zulip instance.
'''
def handle_message(self: Any, message: Dict[str, str], bot_handler: Any) -> None:
def handle_message(self, message: Dict[str, str], bot_handler: Any) -> None:
help_content = "Info on Zulip can be found here:\nhttps://github.com/zulip/zulip"
bot_handler.send_reply(message, help_content)

View file

@ -7,7 +7,7 @@ from typing import Any
class TestHelpBot(StubBotTestCase):
bot_name = "help"
def test_bot(self: Any) -> None:
def test_bot(self) -> None:
help_text = "Info on Zulip can be found here:\nhttps://github.com/zulip/zulip"
requests = ["", "help", "Hi, my name is abc"]