mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-12 05:52:39 +00:00
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:
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user