chore: mypy fixes for routes.py + legal_document_service + control_export_service

- Add [mypy-compliance.api.routes] to mypy.ini strict scope
- Fix bare `dict` type annotation in routes.py update_requirement handler
- Fix Column[str] return type in control_export_service.download_file
- Fix unused type:ignore in legal_document_service.upload_word
- Add union-attr ignore for optional requirement null access in routes.py

mypy compliance/ -> Success on 149 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-09 20:04:16 +02:00
parent ae008d7d25
commit d35b0bc78c
4 changed files with 6 additions and 4 deletions

View File

@@ -97,5 +97,7 @@ ignore_errors = False
ignore_errors = False
[mypy-compliance.api.dsfa_routes]
ignore_errors = False
[mypy-compliance.api.routes]
ignore_errors = False
[mypy-compliance.api._http_errors]
ignore_errors = False