From bd08af1b5852e3d19eb5622dd896d8cb81ef0883 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 22:17:44 +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 cde90d9..d8a7123 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.15.8
+ rev: v0.15.9
hooks:
- id: ruff-check
args: [--fix]
@@ -39,7 +39,7 @@ repos:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v1.19.1
+ rev: v1.20.0
hooks:
- id: mypy
# uses py311 syntax, mypy configured for py310
From 18192ed65f585ed7d4bb4c25ee4853d7e85773a9 Mon Sep 17 00:00:00 2001
From: jakkdl
Date: Wed, 8 Apr 2026 16:17:47 +0200
Subject: [PATCH 2/2] fix test files matching literals to async function return
value, which mypy now correctly marks as unreachable
---
tests/autofix_files/async91x_autofix.py | 8 ++++----
tests/eval_files/async91x_autofix.py | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/autofix_files/async91x_autofix.py b/tests/autofix_files/async91x_autofix.py
index 746166a..50f1e99 100644
--- a/tests/autofix_files/async91x_autofix.py
+++ b/tests/autofix_files/async91x_autofix.py
@@ -156,7 +156,7 @@ async def match_subject() -> None:
async def match_not_all_cases() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
- match foo():
+ match bar():
case 1:
...
case _:
@@ -203,7 +203,7 @@ async def match_all_cases() -> None:
async def match_fallback_await_in_guard() -> None:
# The case guard is only executed if the pattern matches, so we can mostly treat
# it as part of the body, except for a special case for fallback+checkpointing guard.
- match foo():
+ match bar():
case 1 if await foo():
...
case _ if await foo():
@@ -212,7 +212,7 @@ async def match_fallback_await_in_guard() -> None:
async def match_checkpoint_guard() -> None:
# The above pattern is quite cursed, but this seems fairly reasonable to do.
- match foo():
+ match bar():
case 1 if await foo():
...
case _:
@@ -222,7 +222,7 @@ async def match_checkpoint_guard() -> None:
async def match_not_checkpoint_in_all_guards() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
- match foo():
+ match bar():
case 1:
...
case _ if await foo():
diff --git a/tests/eval_files/async91x_autofix.py b/tests/eval_files/async91x_autofix.py
index f5e22d4..aecf45a 100644
--- a/tests/eval_files/async91x_autofix.py
+++ b/tests/eval_files/async91x_autofix.py
@@ -140,7 +140,7 @@ async def match_subject() -> None:
async def match_not_all_cases() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
- match foo():
+ match bar():
case 1:
...
case _:
@@ -184,7 +184,7 @@ async def match_all_cases() -> None:
async def match_fallback_await_in_guard() -> None:
# The case guard is only executed if the pattern matches, so we can mostly treat
# it as part of the body, except for a special case for fallback+checkpointing guard.
- match foo():
+ match bar():
case 1 if await foo():
...
case _ if await foo():
@@ -193,7 +193,7 @@ async def match_fallback_await_in_guard() -> None:
async def match_checkpoint_guard() -> None:
# The above pattern is quite cursed, but this seems fairly reasonable to do.
- match foo():
+ match bar():
case 1 if await foo():
...
case _:
@@ -203,7 +203,7 @@ async def match_checkpoint_guard() -> None:
async def match_not_checkpoint_in_all_guards() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
- match foo():
+ match bar():
case 1:
...
case _ if await foo():