Removed self: Any from googlesearch

This commit is contained in:
fredfishgames 2017-12-08 18:27:54 +00:00 committed by Steve Howell
parent 8c73adb6b6
commit 9492495f4b

View file

@ -87,7 +87,7 @@ class GoogleSearchHandler(object):
with @mentioned-bot. with @mentioned-bot.
''' '''
def usage(self: Any) -> str: def usage(self) -> str:
return ''' return '''
This plugin will allow users to search This plugin will allow users to search
for a given search term on Google from for a given search term on Google from
@ -97,7 +97,7 @@ class GoogleSearchHandler(object):
@mentioned-bot. @mentioned-bot.
''' '''
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:
original_content = message['content'] original_content = message['content']
result = get_google_result(original_content) result = get_google_result(original_content)
bot_handler.send_reply(message, result) bot_handler.send_reply(message, result)