Skip to content

Commit 9db2465

Browse files
msitarzewskiclaude
andcommitted
fix: wrap long return type annotations to satisfy E501 line length
Pre-existing 8-tuple return type annotations in test files exceeded the 88-char line limit. Wrapped across multiple lines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8106921 commit 9db2465

3 files changed

Lines changed: 50 additions & 5 deletions

File tree

tests/unit/test_cli.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,16 @@ def test_ask_full_loop(self, runner: CliRunner) -> None:
647647

648648
async def fake_ask(
649649
question: str, cfg: Any, **kwargs: Any
650-
) -> tuple[str, float, float, str | None, float, str | None, list[dict[str, str | None]], list[str]]:
650+
) -> tuple[
651+
str,
652+
float,
653+
float,
654+
str | None,
655+
float,
656+
str | None,
657+
list[dict[str, str | None]],
658+
list[str],
659+
]:
651660
pm = ProviderManager()
652661
await pm.register(provider)
653662
from duh.cli.app import _run_consensus

tests/unit/test_cli_batch.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,16 @@ async def fake_consensus(
555555
pm: Any,
556556
display: Any = None,
557557
tool_registry: Any = None,
558-
) -> tuple[str, float, float, str | None, float, str | None, list[dict[str, str | None]], list[str]]:
558+
) -> tuple[
559+
str,
560+
float,
561+
float,
562+
str | None,
563+
float,
564+
str | None,
565+
list[dict[str, str | None]],
566+
list[str],
567+
]:
559568
return ("Answer.", 0.9, 1.0, None, 0.01, None, [], [])
560569

561570
with (
@@ -610,7 +619,16 @@ async def fake_consensus(
610619
pm: Any,
611620
display: Any = None,
612621
tool_registry: Any = None,
613-
) -> tuple[str, float, float, str | None, float, str | None, list[dict[str, str | None]], list[str]]:
622+
) -> tuple[
623+
str,
624+
float,
625+
float,
626+
str | None,
627+
float,
628+
str | None,
629+
list[dict[str, str | None]],
630+
list[str],
631+
]:
614632
nonlocal call_count
615633
call_count += 1
616634
if question == "Q2":
@@ -659,7 +677,16 @@ async def fake_consensus(
659677
pm: Any,
660678
display: Any = None,
661679
tool_registry: Any = None,
662-
) -> tuple[str, float, float, str | None, float, str | None, list[dict[str, str | None]], list[str]]:
680+
) -> tuple[
681+
str,
682+
float,
683+
float,
684+
str | None,
685+
float,
686+
str | None,
687+
list[dict[str, str | None]],
688+
list[str],
689+
]:
663690
if question == "Q2":
664691
raise RuntimeError("Model unavailable")
665692
return ("Answer.", 0.9, 1.0, None, 0.01, None, [], [])

tests/unit/test_mcp_server.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,16 @@ async def test_consensus_protocol(self) -> None:
177177
patch(
178178
"duh.cli.app._run_consensus",
179179
new_callable=AsyncMock,
180-
return_value=("Use SQLite.", 0.9, 1.0, "minor dissent", 0.05, None, [], []),
180+
return_value=(
181+
"Use SQLite.",
182+
0.9,
183+
1.0,
184+
"minor dissent",
185+
0.05,
186+
None,
187+
[],
188+
[],
189+
),
181190
),
182191
):
183192
result = await _handle_ask({"question": "What DB?", "rounds": 2})

0 commit comments

Comments
 (0)