From e18da9c157d93e7fcd1b3858018ecf16468ad985 Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Wed, 31 Jul 2024 16:39:09 -0700 Subject: [PATCH] removed type ignores --- src/crewai/agents/executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crewai/agents/executor.py b/src/crewai/agents/executor.py index 517fc2081..92134bb7f 100644 --- a/src/crewai/agents/executor.py +++ b/src/crewai/agents/executor.py @@ -143,7 +143,7 @@ class CrewAgentExecutor(AgentExecutor, CrewAgentExecutorMixin): intermediate_steps = self._prepare_intermediate_steps(intermediate_steps) # Call the LLM to see what to do. - output = self.agent.plan( # type: ignore # Incompatible types in assignment (expression has type "AgentAction | AgentFinish | list[AgentAction]", variable has type "AgentAction") + output = self.agent.plan( intermediate_steps, callbacks=run_manager.get_child() if run_manager else None, **inputs, @@ -217,7 +217,7 @@ class CrewAgentExecutor(AgentExecutor, CrewAgentExecutorMixin): ) intermediate_steps = self._handle_context_length(intermediate_steps) - output = self.agent.plan( # type: ignore # Incompatible types in assignment (expression has type "AgentAction | AgentFinish | list[AgentAction]", variable has type "AgentAction") + output = self.agent.plan( intermediate_steps, callbacks=run_manager.get_child() if run_manager else None, **inputs,