You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(mypy): type services/runtime/misc (42 -> 27 in src/) (#1280)
Part of #1133. Typing-only changes, no runtime behavior change:
- pyproject mypy overrides: add `regex` / `regex.*` (third-party, no stubs)
-> clears notification_matcher import-untyped
- numpy_semantic: TYPE_CHECKING-import np / NearestNeighbors and annotate
`_matrix` / `_index` fields (they are lazy-imported at runtime)
- scheduler/service: rename loop-bound `all_active` to `active_pipelines`
in the pipeline branch so it is not re-typed from list[SearchQuery]
- runtime/worker: annotate `bot_payload` as dict[str, Any] (was inferred
bool-only from the initial {"configured": False})
- models.PipelineGraph.from_json: narrow param to str | dict[str, Any]
and assert after json.loads so the .get() calls type-check
- config: targeted type: ignore[call-arg] on DatabaseConfig() — pydantic
Field(gt=0) defaults are mis-seen as required by the mypy plugin
- agent/tools/_registry: replace direct attribute access on duck-typed
`object | None` client_pool with getattr/cast in the three pool helpers
(clients / connected_phones / _pool_reports_connections)
Claude-Session: https://claude.ai/code/session_01G3ExCZyXkbUpTkRRrQrFA2
Co-authored-by: axisrow <axisrow@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments