forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #235
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 — type annotation fix
Patent.patent_idis annotated asintintypes.pybut used as astrthroughout the codebase. This causes type checker errors and can lead to subtle runtime bugs.What to do
patent_idintypes.pyfrominttostr.mypyorpyrightto confirm no new type errors are introduced.patent_idtointand remove the now-unnecessary cast.Acceptance criteria
Patent.patent_idis annotated asstrintypes.py.int(patent_id)casts exist where the annotation change makes them redundant.Triage: P2 / small / @developer
Part of P2 code-quality batch (#232-#235). Fix Patent.patent_id type annotation from int to str in types.py. One-line fix, batch with #232, #233, #234.
Triage: P2 Backend - Small complexity. Assigned to @developer.
Delegation: Fix Patent.patent_id type annotation from int to str in types.py. One-line bug fix.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.