From 4785f76fa2520fc2975d0f1b5fac64a6ad275a09 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 12:14:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/routes/models.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/studio/backend/routes/models.py b/studio/backend/routes/models.py index ae15932c33..d7ed9aed4b 100644 --- a/studio/backend/routes/models.py +++ b/studio/backend/routes/models.py @@ -2826,14 +2826,10 @@ async def delete_cached_model( ) raise HTTPException( status_code = 503, - detail = ( - "Could not verify cache ownership before deleting. Try again." - ), + detail = ("Could not verify cache ownership before deleting. Try again."), ) from cache_scan_exc - def _owned_cache_path_matches( - value: Optional[str], roots: list[Path] - ) -> bool: + def _owned_cache_path_matches(value: Optional[str], roots: list[Path]) -> bool: """Return True if ``value`` resolves to (or contains, or is a child of) any of the HF cache repo roots for the target repo. Used by the llama / safetensors guards to catch local snapshot