mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 00:02:36 +00:00
Fixed type annotation in task (#3021)
* Added Union of List of Task, None, NotSpecified * Seems like a flaky test * Fixed run time issue * Fixed Linting issues * fix pydantic error * aesthetic changes --------- Co-authored-by: Lucas Gomide <lucaslg200@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from typing import TYPE_CHECKING, List
|
||||
|
||||
from typing import TYPE_CHECKING, List, Union
|
||||
from crewai.utilities.constants import _NotSpecified
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from crewai.task import Task
|
||||
@@ -15,7 +15,7 @@ def aggregate_raw_outputs_from_task_outputs(task_outputs: List["TaskOutput"]) ->
|
||||
return context
|
||||
|
||||
|
||||
def aggregate_raw_outputs_from_tasks(tasks: List["Task"]) -> str:
|
||||
def aggregate_raw_outputs_from_tasks(tasks: Union[List["Task"],_NotSpecified]) -> str:
|
||||
"""Generate string context from the tasks."""
|
||||
|
||||
task_outputs = (
|
||||
|
||||
Reference in New Issue
Block a user