From 81932f4a0515bc805c4500b4352e11cbe07d5360 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 14 Apr 2026 18:47:29 +0800 Subject: [PATCH] chore: ruff format --- astrbot/core/tools/computer_tools/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/tools/computer_tools/fs.py b/astrbot/core/tools/computer_tools/fs.py index 36b325120..8d3160ff5 100644 --- a/astrbot/core/tools/computer_tools/fs.py +++ b/astrbot/core/tools/computer_tools/fs.py @@ -132,7 +132,7 @@ def _resolve_user_path(path: str, *, local_env: bool, umo: str) -> Path: def _is_path_within_allowed_roots(path: str, umo: str) -> bool: resolved = _resolve_user_path(path, local_env=True, umo=umo) - return any( + return any( resolved == allowed_root or resolved.is_relative_to(allowed_root) for allowed_root in _read_allowed_roots(umo) )