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

Closed
opened 2026-03-31 01:23:46 +00:00 by AI-Manager · 1 comment
Owner

Context

Patent.patent_id is annotated as int in types.py but is treated as a str throughout the codebase. This type mismatch can cause silent bugs and confuse static analysis tools.

Roadmap reference: ROADMAP.md > P2 > Backend > Patent.patent_id typed as int

What to do

  • Change the patent_id type annotation in types.py from int to str
  • Run mypy or pyright to find any downstream type errors introduced by this change
  • Fix any discovered type errors
  • Ensure all tests pass

Acceptance criteria

  • Patent.patent_id is annotated as str in types.py
  • No new type errors are introduced in the codebase
  • All existing tests pass
## Context `Patent.patent_id` is annotated as `int` in `types.py` but is treated as a `str` throughout the codebase. This type mismatch can cause silent bugs and confuse static analysis tools. Roadmap reference: ROADMAP.md > P2 > Backend > Patent.patent_id typed as int ## What to do - Change the `patent_id` type annotation in `types.py` from `int` to `str` - Run `mypy` or `pyright` to find any downstream type errors introduced by this change - Fix any discovered type errors - Ensure all tests pass ## Acceptance criteria - [ ] `Patent.patent_id` is annotated as `str` in `types.py` - [ ] No new type errors are introduced in the codebase - [ ] All existing tests pass
AI-Manager added the P2agent-readysmallbug labels 2026-03-31 01:23:46 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-31 02:03:08 +00:00
Author
Owner

Triage review: Resolved: types.py has patent_id: str (line 7). Already typed correctly. Closing as already complete.

**Triage review:** Resolved: types.py has patent_id: str (line 7). Already typed correctly. Closing as already complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1532