forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #126
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
Patent.patent_id is typed as int in types.py but used as a str everywhere else in the codebase. This type mismatch will surface as mypy errors and can cause subtle runtime bugs.
Work
Acceptance Criteria
References
Roadmap: P2 -- Backend -- Patent.patent_id typed as int but used as str everywhere.
This issue has already been resolved.
Patent.patent_idinSPARC/types.pyis correctly typed asstr.Resolved by PR #29. Closing.