From 57c1f7e4071b320f84c90c76b3e8fb839417373d Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:13:37 +0000 Subject: [PATCH] style: fix ruff format line length in conditional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- lib/crewai/src/crewai/agents/crew_agent_executor.py | 4 +++- lib/crewai/src/crewai/experimental/agent_executor.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/crewai/src/crewai/agents/crew_agent_executor.py b/lib/crewai/src/crewai/agents/crew_agent_executor.py index 9e36b4d91..a711b1d90 100644 --- a/lib/crewai/src/crewai/agents/crew_agent_executor.py +++ b/lib/crewai/src/crewai/agents/crew_agent_executor.py @@ -175,7 +175,9 @@ class CrewAgentExecutor(CrewAgentExecutorMixin): else self.stop ) ) - if merged_stop != (existing_stop if isinstance(existing_stop, list) else []): + if merged_stop != ( + existing_stop if isinstance(existing_stop, list) else [] + ): self.llm = copy.copy(self.llm) self.llm.stop = merged_stop diff --git a/lib/crewai/src/crewai/experimental/agent_executor.py b/lib/crewai/src/crewai/experimental/agent_executor.py index 3e1e859ae..dd76f2c55 100644 --- a/lib/crewai/src/crewai/experimental/agent_executor.py +++ b/lib/crewai/src/crewai/experimental/agent_executor.py @@ -269,7 +269,9 @@ class AgentExecutor(Flow[AgentExecutorState], CrewAgentExecutorMixin): else self.stop ) ) - if merged_stop != (existing_stop if isinstance(existing_stop, list) else []): + if merged_stop != ( + existing_stop if isinstance(existing_stop, list) else [] + ): self.llm = copy.copy(self.llm) self.llm.stop = merged_stop self._state = AgentExecutorState()