Type ReasoningClientProvider.get as AgentLLMClient | None
Débutant
good first issuemaintainability
10 802 ★
Poids du clone moyen
Mise à jour
Description
`core/agent_harness/ports.py` declares `ReasoningClientProvider.get() -> Any | None`, but every implementation returns an agent LLM client (see `core/agent_harness/turns/default_reasoning_client.py`).
**Change**: retype the Protocol return as `AgentLLMClient | None` (import from `core.llm.types`; if that import would create a cycle, stop and comment on this issue instead of adding a local alias). Fix call-site fallout.
**Verify**: `make typecheck` clean; `make check-imports` still passes (no new cycle).
---
**Ground rules for this change**
- New or changed Protocol methods use a docstring-only body — no `...`, no `pass`, no `raise NotImplementedError` (AGENTS.md, Code Style). Do not convert pre-existing `NotImplementedError` stubs elsewhere — out of scope.
- Remove any retired name or alias completely in the same PR — no compatibility re-exports.
- CI's typecheck does not cover `tests/`: run `uv run mypy ` yourself.
- No new module-level mutable state; dependencies arrive via constructor or parameter.
- Before opening the PR follow CI.md (lint, format, typecheck, tests) and fill the PR template, including the AI-usage disclosure.
Issues similaires
Tout voir
Python
Débutant
VS Code extension should be robust to YAML parser errors
Seeing this error: ``` Failed to read calkit.yaml: YAMLParseError: A block sequence may not be used as an im…
Mise à jour
Python
Débutant
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:54…
Mise à jour
Python
Débutant
dash: "Copy details" button on each pending-approval card
Each pending-approval card in the dashboard (`renderPending`, `src/doberman/dash/app.py:448-544`) shows the r…
Mise à jour