forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #79
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 is used as astreverywhere else in the codebase. This causes mypy/pyright errors and potential runtime surprises.Work
Patent.patent_idfrominttostrintypes.py.patent_idas an integer and fix those usages.Acceptance Criteria
Patent.patent_idis typed asstr.patent_id.References
Roadmap: Backend —
Patent.patent_idtyped asintbut used asstreverywhere.Resolved.
Patent.patent_idtype annotation changed frominttostr. Implemented in PR #29 (merged). SeeSPARC/types.py.