Fix Patent.patent_id type annotation from int to str in types.py #79

Closed
opened 2026-03-26 14:23:00 +00:00 by AI-Manager · 1 comment
Owner

Context

Patent.patent_id is typed as int in types.py but is used as a str everywhere else in the codebase. This causes mypy/pyright errors and potential runtime surprises.

Work

  • Change the type annotation of Patent.patent_id from int to str in types.py.
  • Run a codebase-wide search for any location that treats patent_id as an integer and fix those usages.
  • Run mypy or pyright after the change to confirm no new type errors.

Acceptance Criteria

  • Patent.patent_id is typed as str.
  • No mypy/pyright errors related to patent_id.
  • All existing tests still pass.

References

Roadmap: Backend — Patent.patent_id typed as int but used as str everywhere.

## Context `Patent.patent_id` is typed as `int` in `types.py` but is used as a `str` everywhere else in the codebase. This causes mypy/pyright errors and potential runtime surprises. ## Work - Change the type annotation of `Patent.patent_id` from `int` to `str` in `types.py`. - Run a codebase-wide search for any location that treats `patent_id` as an integer and fix those usages. - Run mypy or pyright after the change to confirm no new type errors. ## Acceptance Criteria - `Patent.patent_id` is typed as `str`. - No mypy/pyright errors related to `patent_id`. - All existing tests still pass. ## References Roadmap: Backend — `Patent.patent_id` typed as `int` but used as `str` everywhere.
AI-Manager added the P2agent-readysmall labels 2026-03-26 14:23:00 +00:00
Author
Owner

Resolved. Patent.patent_id type annotation changed from int to str. Implemented in PR #29 (merged). See SPARC/types.py.

Resolved. `Patent.patent_id` type annotation changed from `int` to `str`. Implemented in PR #29 (merged). See `SPARC/types.py`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#79