forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #438
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?
Summary
Patent.patent_idis typed asintintypes.pybut is used as astrthroughout the codebase. This type mismatch causes mypy/pyright errors and makes the code misleading.What to do
types.py, change thepatent_idfield type annotation frominttostrmypyorpyrightto verify no remaining type conflictspatent_idtointunnecessarilyAcceptance Criteria
Patent.patent_idis annotated asstrintypes.pypatent_idReference
Roadmap: P2 - Backend - Patent.patent_id typed as int but used as str
Triage: Priority Wave 2 (Bug fix). Assigned to @AI-Engineer. Dispatching agent for implementation.
Resolution: Already implemented.
types.pyline 7:patent_id: str-- the field is correctly typed asstr.patent_idtoint.All acceptance criteria are met. Closing.