From 9586b93eb837555fe5a2bea97bfa483d7516d1a7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 22:24:44 +0000 Subject: [PATCH] fix: cover both import-untyped and import-not-found for sandlock type ignores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- .../tools/code_interpreter_tool/code_interpreter_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py b/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py index 64ee3d94b..8af1e532f 100644 --- a/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py +++ b/lib/crewai-tools/src/crewai_tools/tools/code_interpreter_tool/code_interpreter_tool.py @@ -408,7 +408,7 @@ class CodeInterpreterTool(BaseTool): Returns: A sandlock Policy object configured with the appropriate restrictions. """ - from sandlock import Policy # type: ignore[import-not-found] + from sandlock import Policy # type: ignore[import-untyped,import-not-found] # Default readable paths for Python execution default_readable = [ @@ -474,7 +474,7 @@ class CodeInterpreterTool(BaseTool): "(pip install sandlock) and you are running on Linux 5.13+." ) - from sandlock import Sandbox # type: ignore[import-not-found] + from sandlock import Sandbox # type: ignore[import-untyped,import-not-found] Printer.print( "Running code in sandlock sandbox (Landlock + seccomp-bpf)",