mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 23:02:50 +00:00
fix: address RUF005 lint - use unpacking instead of list concatenation
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -429,7 +429,7 @@ class CodeInterpreterTool(BaseTool):
|
||||
default_readable.append(path)
|
||||
|
||||
fs_readable = list(set(default_readable + self.sandbox_fs_read))
|
||||
fs_writable = list(set([work_dir] + self.sandbox_fs_write))
|
||||
fs_writable = list(set([work_dir, *self.sandbox_fs_write]))
|
||||
|
||||
policy_kwargs: dict[str, Any] = {
|
||||
"fs_readable": fs_readable,
|
||||
|
||||
Reference in New Issue
Block a user