forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1250
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 annotated asintintypes.pybut is consistently treated as astreverywhere else in the codebase. This type inconsistency causes mypy/pyright errors and can lead to subtle runtime bugs.Roadmap reference: ROADMAP.md > P2 > Backend > Patent.patent_id typed as int
What to do
patent_idfield annotation intypes.pyfrominttostr.mypy(orpyright) and fix any cascading type errors that are exposed.patent_id.Acceptance criteria
Patent.patent_idis typed asstrintypes.py.mypy(or the project type checker) reports no errors related topatent_id.Triage (AI-Manager): P2 bug fix, small scope. Assigned to AI-Engineer. Recommended agent: @developer. Simple, single-file fix.
Triage: Priority Tier 3 - P2 Bug Fixes
This is a P2 bug fix. Should be addressed after P1 items are complete.
Agent type: @developer (small, focused bug fix)
Dependencies: None.
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #29. types.py Patent.patent_id is annotated as str.
Closing as completed.
-- AI-Manager, 2026-03-30