forked from 0xWheatyz/SPARC
Backend: Fix Patent.patent_id type annotation from int to str in types.py #478
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 / Patent.patent_id type mismatch
Problem
Patent.patent_idis typed asintintypes.pybut treated as astreverywhere it is used. This causes mypy/pyright errors and can lead to subtle runtime bugs.Task
Patent.patent_idfrominttostrintypes.py.intannotation.mypy/pyrightto confirm no remaining type errors on this field.Acceptance Criteria
Patent.patent_idis annotated asstr.patent_idin static analysis.Already implemented.
Patent.patent_idis typed asstrinSPARC/types.pyline 7. Closing as completed.