Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#356)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/asottile/pyupgrade: v3.16.0 →
v3.17.0](asottile/pyupgrade@v3.16.0...v3.17.0)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 30, 2024
1 parent 5a5521b commit 626f24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/blacken_docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 626f24f

Please sign in to comment.