Fix lint and type-checker issues

- Add 'cast' import to fix mypy type compatibility error
- Remove unused imports to fix lint warnings
- Add assertions to reproduction script to use agent variables
- All custom tool patterns now work correctly

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-07-27 01:54:23 +00:00
parent b3be8a6588
commit c06478afcc
4 changed files with 12 additions and 12 deletions

View File

@@ -4,9 +4,8 @@ This addresses issue #3226 where custom tool registration was broken in CrewAI 0
"""
import pytest
from typing import Any
from crewai import Agent
from crewai.tools import BaseTool, tool, Tool
from crewai.tools import BaseTool, tool
class TestCustomToolPatterns: