forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation from int to str in types.py #648
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 — Type Annotation Fix
Patent.patent_idis declared asintintypes.pybut treated as astreverywhere it is used (API routes, database queries, file paths). This type mismatch causes mypy warnings and can lead to subtle runtime errors.What to do
patent_idintypes.py(and any related Pydantic models or dataclasses) frominttostrmypyorpyrightto confirm no new type errors are introducedAcceptance criteria
Patent.patent_idis annotated asstrintypes.pymypy(or equivalent) reports no type errors related topatent_idClosing as already correct.
SPARC/types.pydefinespatent_id: str-- the type annotation is alreadystr, notint.