From a48c073e842a08e8fd6d724d49113be5f3a8f99f Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Tue, 14 Jan 2025 10:57:12 -0500 Subject: [PATCH] Fix failing tests --- src/crewai/crew.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crewai/crew.py b/src/crewai/crew.py index 4579a30de..96bbe7648 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -510,9 +510,11 @@ class Crew(BaseModel): def kickoff( self, - inputs: Dict[str, Any] = {}, + inputs: Optional[Dict[str, Any]] = None, ) -> CrewOutput: for before_callback in self.before_kickoff_callbacks: + if inputs is None: + inputs = {} inputs = before_callback(inputs) """Starts the crew to work on its assigned tasks."""