refactor: Add missing return types

pull/2/head
Julian-Samuel Gebühr 2023-01-12 16:04:56 +01:00 committed by Georg Krause
parent 0dd6930c0f
commit 6a2a13bd74
Signed by: gcrkrause
GPG Key ID: 2970D504B2183D22
1 changed files with 2 additions and 2 deletions

View File

@ -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}',
}