diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 130e3c7e..70f481f6 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/tests/utils.py b/tests/utils.py index 4f6a2e04..8b8fb6a7 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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