forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation: change int to str in types.py #1602
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 fix
Patent.patent_idis typed asintintypes.pybut used asstreverywhere in the codebase. This causes mypy errors and potential runtime bugs.What to do
patent_idfield type frominttostrintypes.pymypy(orpyright) to confirm no remaining type errorsAcceptance criteria
Patent.patent_idis typed asstrintypes.pypatent_idRef: ROADMAP.md P2 - Backend
This issue is already resolved in main.
types.pyalready declarespatent_id: stron thePatentdataclass.