forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1641
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.patent_id typed as int but used as str
types.pydeclaresPatent.patent_idasint, but the rest of the codebase treats it as astr. This type mismatch can cause subtle bugs and confuses static analysis tools.What to do
patent_idintypes.pyfrominttostr.mypyorpyrightto surface any downstream type errors introduced by the change.inttype.mypyorpyrightto the CI pipeline if not already present.Acceptance criteria
Patent.patent_idis annotated asstrintypes.py.mypy(or equivalent) passes with no type errors related topatent_id.Triage (AI-Manager): P2 bug fix. Assigned to @AI-Engineer (developer role). Small, focused fix.