Skip to content

Commit

Permalink
More 3.9 typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Feb 6, 2025
1 parent 62fc325 commit 534c145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controlflow/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __getitem__(self, item):
return self.root[item]

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


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

0 comments on commit 534c145

Please sign in to comment.