forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #103
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 used as astrthroughout the codebase. This type mismatch causes incorrect type-checker warnings and may produce runtime errors in strict contexts.Work
patent_idfield annotation intypes.pyfrominttostr.mypyorpyrightto confirm no new errors are introduced.str.int(e.g. JSON parsing, DB column type).Acceptance Criteria
Patent.patent_idis typed asstrintypes.py.patent_idby a type checker.References
Roadmap: P2 — Backend — Patent.patent_id typed as int but used as str.