Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 534c145

Browse files
committed
More 3.9 typing
1 parent 62fc325 commit 534c145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controlflow/tasks/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __getitem__(self, item):
7575
return self.root[item]
7676

7777
def __repr__(self) -> str:
78-
return f'Labels: {", ".join(self.root)}'
78+
return f"Labels: {', '.join(self.root)}"
7979

8080

8181
class TaskStatus(Enum):
@@ -162,7 +162,7 @@ class Task(ControlFlowModel):
162162
description="Agents that are allowed to mark this task as complete. If None, all agents are allowed.",
163163
)
164164
interactive: bool = False
165-
memories: list[Memory] | list[AsyncMemory] = Field(
165+
memories: list[Union[Memory, AsyncMemory]] = Field(
166166
default=[],
167167
description="A list of memory modules for the task to use.",
168168
)

0 commit comments

Comments
 (0)