From 3971ae0cb2a5c968068af1754bdaabcc1f085806 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 20:10:23 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_llama_cpp_tool_loop.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/studio/backend/tests/test_llama_cpp_tool_loop.py b/studio/backend/tests/test_llama_cpp_tool_loop.py index 239ba9cb4d..fbc1ebf538 100644 --- a/studio/backend/tests/test_llama_cpp_tool_loop.py +++ b/studio/backend/tests/test_llama_cpp_tool_loop.py @@ -84,7 +84,11 @@ def _make_backend( return backend -def _patch_successful_respawn(monkeypatch, backend, port: int | None = None) -> list[bool]: +def _patch_successful_respawn( + monkeypatch, + backend, + port: int | None = None, +) -> list[bool]: calls: list[bool] = [] def fake_respawn(): @@ -2256,7 +2260,6 @@ def test_connect_error_before_tool_stream_respawns_and_retries(monkeypatch): def test_connect_error_after_tool_result_recovers_both_generation_paths(monkeypatch): """Recover either post-tool generation path without rerunning the tool.""" import httpx - for max_tool_iterations, final_text in ( (2, "The result is 1."), (1, "Final answer."),