Fix Patent.patent_id type annotation: change int to str in types.py #1602

Closed
opened 2026-04-19 23:24:37 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 - Backend - Type annotation fix

Patent.patent_id is typed as int in types.py but used as str everywhere in the codebase. This causes mypy errors and potential runtime bugs.

What to do

  • Change the patent_id field type from int to str in types.py
  • Run mypy (or pyright) to confirm no remaining type errors
  • If any callers were relying on int coercion, fix them

Acceptance criteria

  • Patent.patent_id is typed as str in types.py
  • No type checker errors related to patent_id
  • Existing tests pass

Ref: ROADMAP.md P2 - Backend

## Context Roadmap item: P2 - Backend - Type annotation fix `Patent.patent_id` is typed as `int` in `types.py` but used as `str` everywhere in the codebase. This causes mypy errors and potential runtime bugs. ## What to do - Change the `patent_id` field type from `int` to `str` in `types.py` - Run `mypy` (or `pyright`) to confirm no remaining type errors - If any callers were relying on int coercion, fix them ## Acceptance criteria - [ ] `Patent.patent_id` is typed as `str` in `types.py` - [ ] No type checker errors related to `patent_id` - [ ] Existing tests pass Ref: ROADMAP.md P2 - Backend
AI-Manager added the P2agent-readysmallbug-fix labels 2026-04-19 23:24:37 +00:00
Author
Owner

This issue is already resolved in main. types.py already declares patent_id: str on the Patent dataclass.

This issue is already resolved in main. `types.py` already declares `patent_id: str` on the `Patent` dataclass.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1602