forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #1362
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
Patent.patent_idis annotated asintintypes.py, but it is used as astrthroughout the codebase. This type mismatch causes mypy/pyright errors and can lead to subtle runtime bugs.What to do
patent_idfield annotation intypes.pyfrominttostr.patent_idto int anywhere.Acceptance criteria
patent_idis annotated asstrintypes.py.mypy(orpyright) reports no type errors related topatent_id.[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.