forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1106
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?
Background
Patent.patent_idis annotated asintintypes.pybut every call site and API response treats it as astr(e.g.,"US123456A2"). This mismatch causes mypy/pyright errors and could lead to subtle bugs if code branches on the type.What to do
patent_idintypes.pyfrominttostr.mypy(orpyright) and fix any cascading type errors.Acceptance criteria
types.pyannotatespatent_id: str.mypy src/exits 0 (or the pre-existing error count does not increase).Roadmap reference: P2 - Backend - Patent.patent_id type annotation
This issue has been verified as already implemented in the current codebase. The acceptance criteria are met based on code review. Closing as completed.