forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #695
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
Roadmap item: P2 Backend - Patent.patent_id type mismatch
Patent.patent_idis typed asintintypes.pybut is used as astreverywhere else in the codebase. This causes type-checker warnings and potential runtime bugs.Work to do
patent_idintypes.pyfrominttostrmypyorpyrightto confirm no additional type errors are introducedinttype (e.g. numeric comparisons)Acceptance criteria
patent_idis annotated asstrintypes.pymypy/pyrightreports no type errors related topatent_idClosing as already implemented. Patent.patent_id type annotation was fixed from int to str in types.py. Done in PR #29 (feature/p2-config-improvements).