fix: cover both import-untyped and import-not-found for sandlock type ignores

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-03-27 22:24:44 +00:00
parent 321ab01508
commit 9586b93eb8

View File

@@ -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)",