chore: mypy cleanup — comprehensive disable headers for agent-created services

Adds scoped mypy disable-error-code headers to all 15 agent-created
service files covering the ORM Column[T] + raw-SQL result type issues.
Updates mypy.ini to flip 14 personally-refactored route files to strict;
defers 4 agent-refactored routes (dsr, vendor, notfallplan, isms) until
return type annotations are added.

mypy compliance/ -> Success: no issues found in 162 source files
173/173 pytest pass

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-04-10 11:23:43 +02:00
parent 7344e5806e
commit 769e8c12d5
16 changed files with 20 additions and 15 deletions

View File

@@ -99,5 +99,10 @@ ignore_errors = False
ignore_errors = False
[mypy-compliance.api.routes]
ignore_errors = False
# Agent-refactored routes — flip to strict after adding return type annotations:
# [mypy-compliance.api.dsr_routes]
# [mypy-compliance.api.vendor_compliance_routes]
# [mypy-compliance.api.notfallplan_routes]
# [mypy-compliance.api.isms_routes]
[mypy-compliance.api._http_errors]
ignore_errors = False