From e3f9cea3a0fc436f4e90f9805565f4efe6b75afb Mon Sep 17 00:00:00 2001 From: Milla J <232237854+milla-jovovich@users.noreply.github.com> Date: Fri, 22 May 2026 16:28:13 -0700 Subject: [PATCH] chore(deps): add mypy>=1.0 for static type checking (closes type-hint gap caught by gemini on PR #1588) --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 5a3f711..9dabb02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,6 +75,15 @@ dev = [ # discover the failure at CI time (which caused the 4 AM # ruff-version-mismatch on PRs #1579 / #1584 on 2026-05-22). "pre-commit>=3.0", + # mypy — static type checker. Catches lazy ``list`` / ``dict`` + # annotations that should be ``list[str]`` / ``dict[str, int]``, + # missing return types, mismatched signatures across call sites. + # Run ad-hoc with ``mypy mempalace/``; CI doesn't gate on it yet but + # contributors should fix mypy errors they see before pushing. Closes + # the type-hint specificity bug class gemini-code-assist flagged on + # PR #1588 (2026-05-22) — ``drawer_ids: list`` → ``list[str]``, + # ``-> list:`` → ``-> list[DrawerCandidate]:``. + "mypy>=1.0", ] spellcheck = ["autocorrect>=2.0"] # Hardware acceleration for the ONNX embedding model. Install exactly one: @@ -109,6 +118,7 @@ dev = [ "psutil>=5.9", "hypothesis>=6.0", "pre-commit>=3.0", + "mypy>=1.0", ] [build-system]