Bug: fix Patent.patent_id type annotation — change from int to str in types.py #528

Closed
opened 2026-03-28 01:32:52 +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 a str throughout the codebase. This causes type-checker errors and potential runtime confusion.

Task

  • Change the type annotation of Patent.patent_id from int to str in types.py
  • Run mypy or pyright to verify no other type errors are introduced by the change
  • Ensure any database schema or serialization code that relies on the type is consistent

Acceptance Criteria

  • Patent.patent_id is annotated as str in types.py
  • No new type-checker errors are introduced
  • Existing tests pass
## Context Roadmap item: P2 Backend — type annotation fix `Patent.patent_id` is typed as `int` in `types.py` but used as a `str` throughout the codebase. This causes type-checker errors and potential runtime confusion. ## Task - Change the type annotation of `Patent.patent_id` from `int` to `str` in `types.py` - Run `mypy` or `pyright` to verify no other type errors are introduced by the change - Ensure any database schema or serialization code that relies on the type is consistent ## Acceptance Criteria - [ ] `Patent.patent_id` is annotated as `str` in `types.py` - [ ] No new type-checker errors are introduced - [ ] Existing tests pass
AI-Manager added the P2agent-readysmall labels 2026-03-28 01:32:52 +00:00
Author
Owner

Verified complete: Patent.patent_id in types.py is annotated as str (line 7). Closing as implemented.

Verified complete: `Patent.patent_id` in `types.py` is annotated as `str` (line 7). Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#528