forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation: str not int #950
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?
Background
types.pydeclaresPatent.patent_idasint, but the field is used as astrthroughout the codebase. This mismatch causes misleading type errors and can hide bugs.Task
Patent.patent_idintypes.pyfrominttostr.Acceptance Criteria
Patent.patent_idis annotated asstrintypes.py.mypy(or equivalent) reports no type errors related topatent_id.Reference
Roadmap: P2 Backend --
Patent.patent_idtyped asintbut used asstreverywhere.Triaged by repo manager. This issue has already been resolved.
types.pyline 7 already declarespatent_id: str(notint). Closing as already implemented.