forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1456
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
Problem
Patent.patent_idis typed asintintypes.pybut treated as astreverywhere else (e.g., used in path constructionpatents/{patent_id}.pdf). This causes type-checker errors and potential runtime bugs.What to do
patent_idintypes.pyfrominttostr.ruff checkand fix any downstream type errors surfaced.Acceptance criteria
types.pydeclarespatent_id: str.ruff checkandmypy(if configured) report no new errors.[Triage] P2 bug fix (patent_id type annotation). Assigned to @AI-Engineer. Queued for implementation after P1 issues are addressed.
[Verification] All acceptance criteria met. Verified complete.
types.pyline 7:patent_id: str. Already typed correctly. Closing as implemented.