From d353dcca2f8609111ab836c3311eeadb772d27f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 22:04:31 +0000 Subject: [PATCH 1/5] [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.14.6 → v0.14.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.6...v0.14.8) - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...25.12.0) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.19.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39f9dbc..af66c97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,13 +9,13 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.6 + rev: v0.14.8 hooks: - id: ruff-check args: [--fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 25.12.0 hooks: - id: black args: [--preview] @@ -39,7 +39,7 @@ repos: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v1.19.0 hooks: - id: mypy # uses py311 syntax, mypy configured for py310 From 910e98a6ee07180bf3fb50d5848a20c542990d59 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 22:04:56 +0000 Subject: [PATCH 2/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/eval_files/async400_py311.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/eval_files/async400_py311.py b/tests/eval_files/async400_py311.py index f232398..c5fd633 100644 --- a/tests/eval_files/async400_py311.py +++ b/tests/eval_files/async400_py311.py @@ -33,7 +33,7 @@ e, f = 1, 2 e.anything # safe except* TypeError as e: - (e, f) = (1, 2) + e, f = (1, 2) e.anything # safe except* ValueError as e: with blah as e: From 925b99dfbc090c7ae89f9ae0c9eeeb6a03f6738a Mon Sep 17 00:00:00 2001 From: A5rocks Date: Mon, 8 Dec 2025 20:26:19 -0500 Subject: [PATCH 3/5] Adjust for new `untyped-decorator` error code from mypy --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8fa5e89..3ba2ece 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ skip_glob = "tests/*_files/*" [tool.mypy] check_untyped_defs = true -disable_error_code = ["no-untyped-def", "misc", "no-untyped-call", "no-any-return"] +disable_error_code = ["no-untyped-def", "untyped-decorator", "no-untyped-call", "no-any-return"] python_version = "3.10" strict = true warn_unreachable = true From ca2d2b538ff729eff68603be94f739f874af08ef Mon Sep 17 00:00:00 2001 From: A5rocks Date: Mon, 8 Dec 2025 20:28:10 -0500 Subject: [PATCH 4/5] Turns out we need misc for other things: ``` tests/eval_files/exception_suppress_context_manager.py:139: error: Cannot assign to a type [misc] tests/eval_files/exception_suppress_context_manager.py:139: note: Error code "misc" not covered by "type: ignore" comment tests/eval_files/async124.py:87: error: Single overload definition, multiple required [misc] tests/eval_files/async104.py:194: error: "return" outside function [misc] tests/eval_files/async104.py:198: error: "return" outside function [misc] tests/autofix_files/exception_suppress_context_manager.py:152: error: Cannot assign to a type [misc] tests/autofix_files/exception_suppress_context_manager.py:152: note: Error code "misc" not covered by "type: ignore" comment tests/autofix_files/async124.py:96: error: Single overload definition, multiple required [misc] flake8_async/visitors/flake8asyncvisitor.py:160: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] flake8_async/visitors/visitor91x.py:237: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] ``` --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3ba2ece..620e103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,14 @@ skip_glob = "tests/*_files/*" [tool.mypy] check_untyped_defs = true -disable_error_code = ["no-untyped-def", "untyped-decorator", "no-untyped-call", "no-any-return"] +disable_error_code = [ + "no-untyped-def", + "no-untyped-call", + "no-any-return", + "misc", + # things like `@pytest.fixture` are untyped in pre-commit + "untyped-decorator", +] python_version = "3.10" strict = true warn_unreachable = true From a936582ccfe629e1ce267e47d5bb35ef0e142d4b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Dec 2025 01:28:24 +0000 Subject: [PATCH 5/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 620e103..8abb4db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ disable_error_code = [ "no-any-return", "misc", # things like `@pytest.fixture` are untyped in pre-commit - "untyped-decorator", + "untyped-decorator" ] python_version = "3.10" strict = true