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"