From 9229b78fe5b0f2d4dc74caf350a568070cdb10f5 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 9 May 2026 02:47:36 +0000 Subject: [PATCH] fix(tools): annotate files dict as dict[str, FileInput] for mypy --- lib/crewai/src/crewai/utilities/tool_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/utilities/tool_files.py b/lib/crewai/src/crewai/utilities/tool_files.py index 622fda9b8..0049e9a4c 100644 --- a/lib/crewai/src/crewai/utilities/tool_files.py +++ b/lib/crewai/src/crewai/utilities/tool_files.py @@ -82,7 +82,7 @@ def extract_files_from_tool_result( A ``(files, message)`` tuple. ``files`` is ``None`` when no files were detected. """ - files: dict[str, BaseFile] = {} + files: dict[str, FileInput] = {} if _is_base_file(result): key = _file_key(result, used=set(), default_index=0)