From 8f118ac0f7d1f54badf0f2e5f57fa5962cead79d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 23:53:16 +0000 Subject: [PATCH] correct: Type the correction deadline as always set _correction_candidates always fills in a missing deadline before returning it, but its annotation still said float | None. The mixed-case scheduling commit feeds that value back into the local deadline, so mypy rejects both assignments and CI fails on every OS. Narrow the return annotation to float. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01E75K4nCzge7jFwjwDgeBrR --- src/codex32/_cli_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codex32/_cli_input.py b/src/codex32/_cli_input.py index e1e22bb..ae35f9e 100644 --- a/src/codex32/_cli_input.py +++ b/src/codex32/_cli_input.py @@ -455,7 +455,7 @@ def _correction_candidates( fingerprint_match: Callable[[CorrectionCandidate], bool | None] | None = None, seed_candidates: Sequence[CorrectionCandidate] = (), required_only: bool = False, -) -> tuple[tuple[CorrectionCandidate, ...], bool, float | None, bool]: +) -> tuple[tuple[CorrectionCandidate, ...], bool, float, bool]: count = len(value.replace(" ", "")) targets, primary, reduced, _timed = _correction_plan(profile, byte_length, count, target) deadline = monotonic() + 10 if deadline is None else deadline