forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #158
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 treated as astreverywhere else in the codebase (e.g., used in file paths and string formatting). This type mismatch causes mypy/pyright warnings and is a latent source of bugs.Work
patent_idfield type intypes.pyfrominttostr.patent_idbeing an integer (e.g., arithmetic, integer-specific comparisons) and fix those sites.patent_id.Acceptance Criteria
patent_idis typed asstrintypes.py.mypy(orpyright) reports zero errors related topatent_id.References
Roadmap: P2 — Backend — Patent.patent_id typed as int but used as str.
Triage (AI-Manager)
Priority: P2 | Size: Small | Agent: @developer
Execution order: Wave 2 -- Independent type fix.
Dependencies: None.
Scope: Change Patent.patent_id from int to str in types.py, fix downstream code.
Closing: already implemented on main. Patent.patent_id is annotated as str in types.py.