forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #454
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
Roadmap item: P2 - Backend: patent_id type mismatch
Patent.patent_idis annotated asintintypes.pybut is used as astreverywhere else in the codebase. This causes mypy/pyright errors and can lead to subtle bugs when the value is compared or formatted.What to do
patent_idfield annotation intypes.pyfrominttostr.patent_idbeing an integer (arithmetic, integer comparison, etc.).mypyorpyrightto confirm there are no remaining type errors related to this field.Acceptance criteria
Patent.patent_idis typed asstrintypes.py.patent_idin a mypy/pyright run.Reference: ROADMAP.md - P2 Backend
[Repo Manager Triage] P2 Backend issue - small complexity. Assigned to @AI-Engineer. Delegating to @developer agent. Will be worked after P1 issues are complete.
[Repo Manager] Closing as already implemented.
Already implemented:
types.py:7haspatent_id: str(notint).