fix linter

This commit is contained in:
lorenzejay
2026-03-14 11:55:55 -07:00
parent 5876b93363
commit 5698301fc9

View File

@@ -1129,7 +1129,7 @@ class AgentExecutor(Flow[AgentExecutorState], CrewAgentExecutorMixin):
# asyncio.gather preserves input order, so zip gives us the exact
# todo ↔ result (or exception) mapping.
step_results: list[tuple[TodoItem, object]] = []
for todo, item in zip(ready, gathered):
for todo, item in zip(ready, gathered, strict=True):
if isinstance(item, Exception):
error_msg = f"Error: {item!s}"
todo.result = error_msg