From 3ce5cefc5eac5b7080838ff1b882a949d866dbbb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 16 May 2026 11:35:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/llama_cpp.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py index 96babd9be6..3682f1dbbb 100644 --- a/studio/backend/core/inference/llama_cpp.py +++ b/studio/backend/core/inference/llama_cpp.py @@ -2775,17 +2775,13 @@ class LlamaCppBackend: if req_spec != backend_spec: return False - if (self._chat_template_override or None) != ( - chat_template_override or None - ): + if (self._chat_template_override or None) != (chat_template_override or None): return False # extra_args=None means "no opinion" (inherit semantics handled # at the route layer); only an explicit list forces equality. if extra_args is not None: - current = ( - list(self._extra_args) if self._extra_args is not None else [] - ) + current = list(self._extra_args) if self._extra_args is not None else [] if list(extra_args) != current: return False return True