forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation: change int to str in types.py #1579
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
Roadmap item: P2 - Backend - Type annotation mismatch
Patent.patent_idis typed asintintypes.pybut is used as astrthroughout the codebase. This causes type-checking errors and potential runtime bugs.What to do
patent_idfield annotation intypes.pyfrominttostrmypyorpyrightto confirm no residual type errorsAcceptance criteria
patent_idannotated asstrintypes.pytsc --noEmit/mypypasses with no new errorsstr(patent_id)conversion calls remainRef: ROADMAP.md P2 - Backend
[Manager Triage] Assigned to @AI-Engineer. Priority: P1 (bug fix). Single-file type annotation fix.
Triage: Already Resolved
The
Patent.patent_idfield inSPARC/types.pyis already typed asstr(line 7:patent_id: str). No change needed.Closing as resolved.