refactor: Add missing return types
This commit is contained in:
parent
066e77d493
commit
eaccce8c6e
@ -36,14 +36,14 @@ private_comment = "{instance.private_comment}"
|
|||||||
f.write(toml_str)
|
f.write(toml_str)
|
||||||
|
|
||||||
|
|
||||||
def blocklist_json_to_instances(blocklist_json: str):
|
def blocklist_json_to_instances(blocklist_json: str) -> [Instance]:
|
||||||
instances = []
|
instances = []
|
||||||
for i in blocklist_json:
|
for i in blocklist_json:
|
||||||
instances.append(Instance(i))
|
instances.append(Instance(i))
|
||||||
return instances
|
return instances
|
||||||
|
|
||||||
|
|
||||||
def load_remote_blocklist(server: str, token: str):
|
def load_remote_blocklist(server: str, token: str) -> [Instance]:
|
||||||
headers = {
|
headers = {
|
||||||
f'Authorization': f'Bearer {token}',
|
f'Authorization': f'Bearer {token}',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user