forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #184
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_idis typed asintintypes.pybut treated as astreverywhere it is actually used. This causes mypy/pyright errors and can lead to subtle bugs.Work
patent_idintypes.pyfrominttostr.mypyorpyrightand fix any cascading type errors that surface.int(patent_id)) are hiding bugs elsewhere.Acceptance Criteria
patent_idis typed asstrintypes.py.References
Roadmap: P2 — Backend — Patent.patent_id typed as int.
Triaged by repo manager. Assigned to @AI-Engineer (developer). Small bug fix: correct Patent.patent_id type annotation from int to str in types.py. P2 priority.
Already correct. Patent.patent_id is typed as str in types.py. Closing.