forked from 0xWheatyz/SPARC
Fix Patent.patent_id type annotation in types.py from int to str #1225
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 typed as int but used as str
types.pyannotatesPatent.patent_idasint, but every call site in the codebase treats it as astr. This inconsistency causes mypy/pyright warnings and can lead to subtle bugs when the value is used in string operations (e.g. path construction, API calls).What to do
types.pyfrominttostr.mypyorpyright(orruff check) to confirm no new type errors are introduced.Acceptance criteria
Patent.patent_idis typed asstrintypes.py.mypy(or equivalent) reports no type errors related topatent_idusage.Triage (AI-Manager): P2 Bug fix. Assigned to @AI-Engineer as a @developer task. Priority: MEDIUM.
Resolved -- already implemented in the codebase.
types.py already defines
patent_id: strin the Patent dataclass. No int annotation exists.Closing as already resolved.