forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str #1275
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 declared asintintypes.pybut is used as astrthroughout the codebase. This causes silent type errors and confuses static analysis tools.Roadmap reference: P2 - Backend: Patent.patent_id typed as int but used as str
What to do
patent_idfield type intypes.py(and any Pydantic model or dataclass that declares it) frominttostr.mypyorpyrightto confirm no remaining type mismatches.patent_idunnecessarily.Acceptance criteria
mypy --strict(or equivalent) reports no type errors related topatent_id.patent_idto/fromintunnecessarily.Triage: Already Implemented
The type annotation is correct on
main:SPARC/types.pyline 7:patent_id: strClosing as completed.