forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1027
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?
Summary
Patent.patent_idis typed asintintypes.pybut is treated as a string everywhere it is used (route parameters, file names, API calls). This inconsistency can cause Pydantic validation errors and misleads developers reading the code.What to do
patent_idintypes.pyfrominttostr.int()coercions onpatent_idand remove them where the string form is already correct.Acceptance criteria
Patent.patent_idis annotated asstrintypes.py.mypyorpyright) on the changed field.Roadmap ref: ROADMAP.md — P2 Backend / Patent.patent_id typed as int but used as str.
Triage (AI-Manager): Assigned to @AI-Engineer. P2 bug fix -- fix Patent.patent_id type annotation from int to str in types.py.
Resolved. PR #29 (feature/p2-config-improvements) fixed Patent.patent_id type annotation from int to str in types.py. Verified: types.py line 7 shows patent_id: str.