From 6a2a13bd749aa9f8eb6ac1417b356fa4aadb65ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Thu, 12 Jan 2023 16:04:56 +0100 Subject: [PATCH] refactor: Add missing return types --- mastodon_blocklist_deploy/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon_blocklist_deploy/cli.py b/mastodon_blocklist_deploy/cli.py index 0b8d607..b049471 100644 --- a/mastodon_blocklist_deploy/cli.py +++ b/mastodon_blocklist_deploy/cli.py @@ -36,14 +36,14 @@ private_comment = "{instance.private_comment}" f.write(toml_str) -def blocklist_json_to_instances(blocklist_json: str): +def blocklist_json_to_instances(blocklist_json: str) -> [Instance]: instances = [] for i in blocklist_json: instances.append(Instance(i)) return instances -def load_remote_blocklist(server: str, token: str): +def load_remote_blocklist(server: str, token: str) -> [Instance]: headers = { f'Authorization': f'Bearer {token}', }