From f4ee3d40091bae25f1f7e6eda72006058b5b9063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Thu, 4 Jan 2018 17:19:02 +0100 Subject: [PATCH] Fix mypy errors. --- zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py | 2 +- zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py | 2 +- zulip_bots/zulip_bots/bots/mention/mention.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py b/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py index 5d29add..c60d237 100644 --- a/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py +++ b/zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py @@ -23,7 +23,7 @@ class BaremetricsHandler(object): self.check_api_key(bot_handler) - def check_api_key(self, bot_handler) -> None: + def check_api_key(self, bot_handler: Any) -> None: url = "https://api.baremetrics.com/v1/account" test_query_response = requests.get(url, headers=self.auth_header) test_query_data = test_query_response.json() diff --git a/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py b/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py index a0e13dd..0de1289 100644 --- a/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py +++ b/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py @@ -19,7 +19,7 @@ class LinkShortenerHandler(object): self.config_info = bot_handler.get_config_info('link_shortener') self.check_api_key(bot_handler) - def check_api_key(self, bot_handler) -> None: + def check_api_key(self, bot_handler: Any) -> None: test_request = requests.post( 'https://www.googleapis.com/urlshortener/v1/url', json={'longUrl': 'www.youtube.com/watch'}, diff --git a/zulip_bots/zulip_bots/bots/mention/mention.py b/zulip_bots/zulip_bots/bots/mention/mention.py index 3039d82..a21d986 100644 --- a/zulip_bots/zulip_bots/bots/mention/mention.py +++ b/zulip_bots/zulip_bots/bots/mention/mention.py @@ -12,7 +12,7 @@ class MentionHandler(object): self.check_access_token(bot_handler) - def check_access_token(self, bot_handler) -> None: + def check_access_token(self, bot_handler: Any) -> None: test_query_header = { 'Authorization': 'Bearer ' + self.access_token, 'Accept-Version': '1.15',