forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #142
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 treated as astrthroughout the rest of the codebase. This mismatch causes silent bugs and confusion when type checkers or serializers handle the field.Work
patent_idin thePatentmodel/dataclass tostr.mypyorpyrightto surface any downstream type errors introduced by the fix and resolve them.Acceptance Criteria
Patent.patent_idis annotated asstr.patent_idare reported by the type checker.References
Roadmap: P2 — Backend — Patent.patent_id typed as int but used as str.
Closing: Patent.patent_id is already typed as str in types.py. Resolved.