Fix mypy errors.
MODIFY
zulip_bots/zulip_bots/bots/baremetrics/baremetrics.py
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()

MODIFY
zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py
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'},

MODIFY
zulip_bots/zulip_bots/bots/mention/mention.py
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',

Fix mypy errors.