forked from 0xWheatyz/SPARC
Bug: fix Patent.patent_id type annotation — should be str not int #255
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
Patent.patent_idis annotated asintintypes.pybut used as astreverywhere else in the codebase. This type mismatch can cause subtle bugs and misleads static analysis tools.Task
patent_idfield annotation intypes.pyfrominttostrmypyorpyrightto confirm no remaining type errors related to this fieldint()casts onpatent_idand remove them if they were added to work around the mismatchAcceptance Criteria
Patent.patent_idis typed asstrintypes.pymypy/pyrighterrors on the changed fieldReference
Roadmap: P2 Backend — Patent.patent_id typed as int but used as str
Triage: P2/small - Assigned to @developer. Wave 3 quick win.
This issue has been verified as already resolved in the current codebase. All acceptance criteria are met. Closing.