forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str #1431
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 treated as astreverywhere it is used. This causes type-checker errors and potential runtime bugs.What to do
patent_idintypes.pyfrominttostr.mypyorpyrightto confirm no downstream type errors are introduced.Acceptance criteria
Patent.patent_idis annotated asstr.References
Roadmap: P2 Backend -- Patent.patent_id type annotation.
Already implemented.
SPARC/types.pydefinesPatent.patent_idasstr, notint. The dataclass reads:Closing as completed.