Status
CI's typecheck job is currently advisory (continue-on-error: true) because the codebase carries ~66 pre-existing mypy errors spread across 13 files. The most affected modules are analyzers/power_integrity/current_profiler.py (40+ Returning Any errors), analyzers/antenna/trace_antenna.py, parsers/step_parser.py, and server.py (3-4 isolated errors).
Acceptance criteria
Suggested approach
Tackle by module — current_profiler.py is the biggest contributor and most of its errors are the same shape (helper functions returning Any from numpy ops; one cast() per function fixes the lot).
Status
CI's typecheck job is currently advisory (
continue-on-error: true) because the codebase carries ~66 pre-existing mypy errors spread across 13 files. The most affected modules areanalyzers/power_integrity/current_profiler.py(40+Returning Anyerrors),analyzers/antenna/trace_antenna.py,parsers/step_parser.py, andserver.py(3-4 isolated errors).Acceptance criteria
mypy src/mcp_pcb_emcopilot/ --ignore-missing-imports.continue-on-error: truefrom thetypecheckjob in.github/workflows/ci.yml.Suggested approach
Tackle by module —
current_profiler.pyis the biggest contributor and most of its errors are the same shape (helper functions returningAnyfromnumpyops; onecast()per function fixes the lot).