forked from 0xWheatyz/SPARC
Bug: Fix Patent.patent_id type annotation from int to str in types.py #721
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?
Summary
Patent.patent_idis annotated asintintypes.pybut is used as astrthroughout the codebase. This type mismatch can cause subtle runtime errors and confuses static analysis tools.What to do
patent_idintypes.pyfrominttostr.mypyorpyrightacross the project to catch any cascading type errors introduced or revealed by this fix.Acceptance Criteria
Patent.patent_idis typed asstrintypes.py.Reference
Roadmap: P2 Backend —
Patent.patent_idtyped asintbut used asstr.[Repo Manager] Already resolved. Patent.patent_id typed as str in types.py.
Closing as already implemented in the codebase.