forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1080
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 reference: P2 / Backend - type annotation bug
Patent.patent_idis declared asintintypes.pybut every usage site in the codebase treats it as astr. This mismatch causes silent type errors and misleads static analysis tools.What to do
patent_idfield annotation intypes.pyfrominttostr.mypyorpyrightto confirm no new type errors are introduced.Acceptance criteria
Patent.patent_idis typed asstrintypes.py.mypy/pyrightpasses on the affected module with no new errors.Resolved by PR #29 (commit
b000146) which fixed the Patent.patent_id type annotation from int to str. Closing as complete.