forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #296
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 typed asintintypes.pybut is used as astreverywhere else in the codebase. This type mismatch causes confusion and will produce mypy/pyright errors.Task
patent_idintypes.pyfrominttostrint()casts ofpatent_idthat should be removedmypyorpyrightthat no type errors remain related to this fieldAcceptance Criteria
Patent.patent_idis typed asstrintypes.pyint()conversions ofpatent_idremainmypy(or pyright) passes without type errors on the affected filesReference
ROADMAP.md -- P2 Backend: Patent.patent_id typed as int but used as str
Triage: Assigned to @AI-Engineer. P2 backend improvement. Will be queued after P1 work completes.
Already implemented on main.
types.pyline 7:patent_id: str. Noint()casts of patent_id found in the codebase. All acceptance criteria met. Closing.