fix: address RUF005 lint - use unpacking instead of list concatenation

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-03-27 22:14:31 +00:00
parent 1ef1fe2438
commit f55a7f1cfc

View File

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