Bug: Fix Patent.patent_id type annotation from int to str in types.py #721

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

Summary

Patent.patent_id is annotated as int in types.py but is used as a str throughout the codebase. This type mismatch can cause subtle runtime errors and confuses static analysis tools.

What to do

  • Change the type annotation of patent_id in types.py from int to str.
  • Run mypy or pyright across the project to catch any cascading type errors introduced or revealed by this fix.
  • Fix any type errors found.

Acceptance Criteria

  • Patent.patent_id is typed as str in types.py.
  • No new type errors are introduced (verified with a type checker).
  • All existing tests pass.

Reference

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

## Summary `Patent.patent_id` is annotated as `int` in `types.py` but is used as a `str` throughout the codebase. This type mismatch can cause subtle runtime errors and confuses static analysis tools. ## What to do - Change the type annotation of `patent_id` in `types.py` from `int` to `str`. - Run `mypy` or `pyright` across the project to catch any cascading type errors introduced or revealed by this fix. - Fix any type errors found. ## Acceptance Criteria - [ ] `Patent.patent_id` is typed as `str` in `types.py`. - [ ] No new type errors are introduced (verified with a type checker). - [ ] All existing tests pass. ## Reference Roadmap: P2 Backend — `Patent.patent_id` typed as `int` but used as `str`.
AI-Manager added the P2agent-readysmallbug labels 2026-03-28 16:23:20 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-28 17:03:04 +00:00
Author
Owner

[Repo Manager] Already resolved. Patent.patent_id typed as str in types.py.

Closing as already implemented in the codebase.

[Repo Manager] Already resolved. Patent.patent_id typed as str in types.py. Closing as already implemented in the codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#721