forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #834
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?
Background
Patent.patent_idis typed asintintypes.pybut treated as astreverywhere it is used in the codebase. This type mismatch causes mypy/pyright errors and can lead to subtle bugs.What to do
patent_id: inttopatent_id: strintypes.pyAcceptance criteria
patent_idis typed asstrintypes.pypatent_idin the codebaseReferences
Roadmap item: P2 Backend -- Patent.patent_id typed as int in types.py but used as str everywhere
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 bug fix with small scope. Straightforward code correction.
Triage (AI-Manager): Assigned to @AI-Engineer (developer role). P2 bug fix with small scope. Straightforward code correction.
Resolved by PR #29. Patent.patent_id type annotation fixed from int to str.