fix arg-type error reported by mypy

This commit is contained in:
italojohnny 2024-06-20 17:56:54 -03:00
commit 7704c2e302

View file

@ -111,7 +111,7 @@ async def retrieve_vertices_order(
run_id = uuid.uuid4() run_id = uuid.uuid4()
graph.set_run_id(run_id) graph.set_run_id(run_id)
vertices_to_run = list(graph.vertices_to_run) + get_top_level_vertices(graph, graph.vertices_to_run) vertices_to_run = list(graph.vertices_to_run) + get_top_level_vertices(graph, graph.vertices_to_run)
await chat_service.set_cache(flow_id, graph) await chat_service.set_cache(str(flow_id), graph)
return VerticesOrderResponse(ids=first_layer, run_id=run_id, vertices_to_run=vertices_to_run) return VerticesOrderResponse(ids=first_layer, run_id=run_id, vertices_to_run=vertices_to_run)
except Exception as exc: except Exception as exc: