forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1532
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 annotated asintintypes.pybut is treated as astrthroughout the codebase. This type mismatch can cause silent bugs and confuse static analysis tools.Roadmap reference: ROADMAP.md > P2 > Backend > Patent.patent_id typed as int
What to do
patent_idtype annotation intypes.pyfrominttostrmypyorpyrightto find any downstream type errors introduced by this changeAcceptance criteria
Patent.patent_idis annotated asstrintypes.pyTriage review: Resolved: types.py has patent_id: str (line 7). Already typed correctly. Closing as already complete.