Format Python code with psf/black push

github-actions 2 years ago
parent 5d3a3bbec1
commit 65f0190561

@ -243,8 +243,8 @@ class Index_handler:
with open(file_path, "r", encoding="utf8") as f: with open(file_path, "r", encoding="utf8") as f:
file_contents = f.read() file_contents = f.read()
index_dict = json.loads(file_contents) index_dict = json.loads(file_contents)
doc_id = index_dict['index_struct_id'] doc_id = index_dict["index_struct_id"]
doc_type = index_dict['docstore']['docs'][doc_id]['__type__'] doc_type = index_dict["docstore"]["docs"][doc_id]["__type__"]
f.close() f.close()
if doc_type == "tree": if doc_type == "tree":
index = GPTTreeIndex.load_from_disk(file_path) index = GPTTreeIndex.load_from_disk(file_path)

Loading…
Cancel
Save