From 626f24f0675c653a81ce55cf7b65f247bb69d474 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:54:00 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.17.0) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/blacken_docs/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c2bb91b..b8e322f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: additional_dependencies: - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.16.0 + rev: v3.17.0 hooks: - id: pyupgrade args: [--py38-plus] diff --git a/src/blacken_docs/__init__.py b/src/blacken_docs/__init__.py index 298fb99..8d21f90 100644 --- a/src/blacken_docs/__init__.py +++ b/src/blacken_docs/__init__.py @@ -138,7 +138,7 @@ def _within_off_range(code_range: tuple[int, int]) -> bool: return code_start >= off_start and code_end <= off_end @contextlib.contextmanager - def _collect_error(match: Match[str]) -> Generator[None, None, None]: + def _collect_error(match: Match[str]) -> Generator[None]: try: yield except Exception as e: