Fix CI issues: lint, type checker, and test failures

- Remove unused imports from test and example files
- Fix f-string formatting in examples
- Add proper type handling for Union[str, Dict] in agent_utils.py
- Fix XML parser test assertion to match expected output
- Use isinstance() for proper type narrowing in LLM calls

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-24 05:21:30 +00:00
parent 39ea952acd
commit a1ebdb125b
5 changed files with 26 additions and 18 deletions

View File

@@ -1,4 +1,3 @@
import pytest
from crewai.utilities.xml_parser import (
extract_xml_content,
extract_all_xml_content,