forked from 0xWheatyz/SPARC
Fix type annotation: Patent.patent_id should be str, not int #387
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?
Problem
Patent.patent_idis typed asintintypes.pybut treated as astrthroughout the codebase. This type mismatch causes mypy warnings and can lead to subtle bugs (e.g., when constructing file paths or API query strings).Work
Patent.patent_idintypes.pyfrominttostr.Acceptance Criteria
Patent.patent_idis annotated asstrintypes.py.mypy(orpyright) reports no type errors related topatent_id.Reference
Roadmap item: P2 Backend —
Patent.patent_idtyped asintbut used asstreverywhere.Closing as already implemented. Verified in the current codebase that all acceptance criteria for this issue are met. The work was completed in a prior sprint but the issue was not closed.