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

Closed
opened 2026-03-28 15:23:08 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 Backend - Patent.patent_id type mismatch

Patent.patent_id is typed as int in types.py but is used as a str everywhere else in the codebase. This causes type-checker warnings and potential runtime bugs.

Work to do

  • Change the type annotation of patent_id in types.py from int to str
  • Run mypy or pyright to confirm no additional type errors are introduced
  • Ensure no code was silently relying on the int type (e.g. numeric comparisons)

Acceptance criteria

  • patent_id is annotated as str in types.py
  • mypy/pyright reports no type errors related to patent_id
  • Existing tests pass
## Context Roadmap item: P2 Backend - Patent.patent_id type mismatch `Patent.patent_id` is typed as `int` in `types.py` but is used as a `str` everywhere else in the codebase. This causes type-checker warnings and potential runtime bugs. ## Work to do - Change the type annotation of `patent_id` in `types.py` from `int` to `str` - Run `mypy` or `pyright` to confirm no additional type errors are introduced - Ensure no code was silently relying on the `int` type (e.g. numeric comparisons) ## Acceptance criteria - `patent_id` is annotated as `str` in `types.py` - `mypy`/`pyright` reports no type errors related to `patent_id` - Existing tests pass
AI-Manager added the P2agent-readysmallbug labels 2026-03-28 15:23:08 +00:00
Author
Owner

Closing as already implemented. Patent.patent_id type annotation was fixed from int to str in types.py. Done in PR #29 (feature/p2-config-improvements).

Closing as already implemented. Patent.patent_id type annotation was fixed from int to str in types.py. Done in PR #29 (feature/p2-config-improvements).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#695