Subcategory: Type safety
Score: 9 → 10 (target)
ty passes, but the session registry and several route/return types fall back to Any, weakening guarantees at the API boundary:
src/pycharting/api/routes.py:26 — _data_managers: dict[str, Any] (actually holds DataManager)
plot/route return values typed as dict[str, Any]
Suggested fix: type the registry as dict[str, DataManager] and model the responses (Pydantic model or TypedDict) instead of dict[str, Any].
Done when: the registry and route responses use concrete types and make typecheck stays clean.
Subcategory: Type safety
Score: 9 → 10 (target)
typasses, but the session registry and several route/return types fall back toAny, weakening guarantees at the API boundary:src/pycharting/api/routes.py:26—_data_managers: dict[str, Any](actually holdsDataManager)plot/route return values typed asdict[str, Any]Suggested fix: type the registry as
dict[str, DataManager]and model the responses (Pydantic model orTypedDict) instead ofdict[str, Any].Done when: the registry and route responses use concrete types and
make typecheckstays clean.