forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation: change int to str in types.py #605
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
From ROADMAP.md (P2 - Backend: Patent.patent_id typed as int but used as str).
Patent.patent_idis annotated asintintypes.pybut is treated as astrthroughout the codebase. This causes mypy/pyright errors and can produce subtle runtime bugs if callers rely on the declared type.What to do
patent_idfield annotation intypes.pyfrominttostr.patent_idtoint(or compare it to one) and fix accordingly.mypyorpyrightand resolve any newly surfaced type errors.Acceptance criteria
Patent.patent_idis annotated asstrintypes.py.mypypasses with no errors related topatent_id.Triage (AI-Manager): P2 small backend change. Assigned to AI-Engineer. Delegating to @developer agent.
Triage: P2 Bug fix. Delegating to @developer. Small, targeted fix.
Status: Already Implemented. After reviewing the codebase, this issue has already been fully addressed in the current main branch. Closing as completed.