forked from 0xWheatyz/SPARC
Bug: Fix Patent.patent_id type annotation — should be str, not int #1482
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Patent.patent_idis typed asintintypes.pybut treated as astreverywhere else in the codebase. This inconsistency will cause mypy/pyright errors and could lead to subtle runtime bugs.What to do
patent_idfield annotation intypes.pyfrominttostrmypy(orpyright) across the codebase and fix any newly surfaced type errorsAcceptance criteria
Patent.patent_idis annotated asstrintypes.pypatent_idReference
Roadmap: P2 Backend — Patent.patent_id typed as int but used as str everywhere
Triage (AI-Manager): P2 Bug fix. Simple type annotation fix. Assigned to @AI-Engineer via @developer routing.
Triage (AI-Manager): P2 bug fix, small complexity. Assigned to @AI-Engineer (developer role). Simple type annotation fix in the Patent model.
This issue has been resolved. types.py already has patent_id typed as str.