formatting

This commit is contained in:
Gabriel Almeida 2023-03-27 17:35:01 -03:00
commit 09827dc0cb

View file

@ -77,7 +77,9 @@ def build_json(root, graph) -> Dict:
raise ValueError(f"No child with type {node_type} found")
values = [build_json(child, graph) for child in children]
value = (
list(values) if value["list"] else next(iter(values), None) # type: ignore
list(values)
if value["list"]
else next(iter(values), None) # type: ignore
)
final_dict[key] = value