forked from 0xWheatyz/SPARC
Fix: correct Patent.patent_id type annotation from int to str in types.py #366
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?
Problem
Patent.patent_idis annotated asintintypes.pybut used as a string everywhere else in the codebase. This causes type-checker warnings and could lead to subtle bugs when comparing or formatting patent IDs.Work
patent_idintypes.pyfrominttostr.mypyorpyrightto confirm no new type errors are introduced.inttype for arithmetic or integer-specific operations.Acceptance Criteria
Patent.patent_idis annotated asstrintypes.py.Reference
Roadmap item: P2 Backend —
Patent.patent_idtyped asintbut used asstreverywhere.[Triage] Already implemented in main. types.py line 7: patent_id: str (already typed as str). Closing as resolved.