Fix mypy errors.
This commit is contained in:
parent
eb02e08fb7
commit
f4ee3d4009
|
@ -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()
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue