Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#960)
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] committed Jul 30, 2024
1 parent 8d23c98 commit 527a03f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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
4 changes: 1 addition & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def prepend_middleware(path: str) -> modify_settings:


@contextmanager
def temporary_check_request_hander(
handler: Callable[..., bool]
) -> Generator[None, None, None]:
def temporary_check_request_hander(handler: Callable[..., bool]) -> Generator[None]:
check_request_enabled.connect(handler)
try:
yield
Expand Down

0 comments on commit 527a03f

Please sign in to comment.