From ae4ca7748cee2c4aee7b9dce1ae004902d9bb112 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:11:01 +0000 Subject: [PATCH] fix: sort imports according to linter rules Co-Authored-By: Joe Moura --- src/crewai/tools/human_tool.py | 2 +- tests/tools/test_human_tool.py | 3 +-- tests/tools/test_tool_usage.py | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/crewai/tools/human_tool.py b/src/crewai/tools/human_tool.py index 03c19718b..edcace97d 100644 --- a/src/crewai/tools/human_tool.py +++ b/src/crewai/tools/human_tool.py @@ -1,6 +1,6 @@ """Tool for handling human input using LangGraph's interrupt mechanism.""" -from typing import Any, Dict +import typing from pydantic import Field diff --git a/tests/tools/test_human_tool.py b/tests/tools/test_human_tool.py index 67274b3c9..dbdd7529e 100644 --- a/tests/tools/test_human_tool.py +++ b/tests/tools/test_human_tool.py @@ -1,8 +1,7 @@ """Test HumanTool functionality.""" -from unittest.mock import patch - import pytest +from unittest.mock import patch from crewai.tools import HumanTool diff --git a/tests/tools/test_tool_usage.py b/tests/tools/test_tool_usage.py index 1218ce9ca..4df1f6fb7 100644 --- a/tests/tools/test_tool_usage.py +++ b/tests/tools/test_tool_usage.py @@ -88,8 +88,6 @@ def test_random_number_tool_schema(): def test_tool_usage_interrupt_handling(): """Test that tool usage properly propagates LangGraph interrupts.""" - from unittest.mock import patch, MagicMock - class InterruptingTool(BaseTool): name: str = "interrupt_test" description: str = "A tool that raises LangGraph interrupts"