From 9299fce87c53e2a207f8af828e92dbd593e3ab3b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:34:47 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.8 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.8...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d247e4d..86c8f49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,14 +18,14 @@ repos: hooks: - id: codespell - repo: 'https://github.com/astral-sh/ruff-pre-commit' - rev: v0.15.8 + rev: v0.15.9 hooks: - id: ruff args: - '--fix' - id: ruff-format - repo: 'https://github.com/pre-commit/mirrors-mypy' - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy additional_dependencies: From 78ad8cd97849d5b028c080f58b8bc22f02fdd4ad Mon Sep 17 00:00:00 2001 From: Greg Pauloski <18683347+gpauloski@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:10:54 -0700 Subject: [PATCH 2/2] Remind mypy of type after assertion equality --- tests/plugins/distributed_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/plugins/distributed_test.py b/tests/plugins/distributed_test.py index 6cd80dd..39df99e 100644 --- a/tests/plugins/distributed_test.py +++ b/tests/plugins/distributed_test.py @@ -174,6 +174,7 @@ def _factory() -> str: # The target is already set by default del x.__proxy_target__ assert x == test_obj + assert isinstance(x, Proxy) assert not store.exists(get_key(x)) @@ -238,6 +239,7 @@ def _foo(a: int, b: str, *, c: int, d: str) -> str: # The target is already set by default del result.__proxy_target__ assert result == '1bbbbbbbbbb2dddddddddd' + assert isinstance(result, Proxy) assert not store.exists(get_key(result))