From 4018a697d248b68a4b4e0f309e015590169264ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 09:12:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/install_python_stack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/install_python_stack.py b/studio/install_python_stack.py index ee0cd8eafa..9dc7cdd02f 100644 --- a/studio/install_python_stack.py +++ b/studio/install_python_stack.py @@ -1173,7 +1173,9 @@ def _ensure_cpu_torch() -> None: return if probe.returncode != 0: return - _lines = [line.strip() for line in probe.stdout.decode(errors = "replace").splitlines() if line.strip()] + _lines = [ + line.strip() for line in probe.stdout.decode(errors = "replace").splitlines() if line.strip() + ] if not _lines or _lines[-1] != "gpu": return # already CPU (or unreadable) -- nothing to repair