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: