forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #810
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 used as astreverywhere else in the codebase. This mismatch can cause silent bugs and confuses static analysis tools.What to do
patent_idfield annotation intypes.py(and any related Pydantic models) frominttostrmypyorpyrightacross the codebase to verify no type errors are introducedpatent_idtointand remove the unnecessary castAcceptance criteria
Patent.patent_idis typed asstrintypes.pyint(patent_id)cast sitesReferences
Roadmap item: P2 Backend --
Patent.patent_idtyped asintbut used asstrThis issue has already been resolved and merged into main via PR #29 (feat: configurable LLM model, SERP cache TTL, structured logging, fix type). Closing as completed.