Format Python code with psf/black push

github-actions 1 year ago
parent 5d3a3bbec1
commit 65f0190561

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

Loading…
Cancel
Save