From 08d3185e87cfeccc4bf4d26ee5c4c0dfd4ec8564 Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 16 Jan 2024 10:12:10 -0800 Subject: [PATCH] update pre-commit hooks --- .pre-commit-config.yaml | 2 +- src/flask/ctx.py | 2 +- src/flask/helpers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 447fd58698..81e76c2ead 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.5 + rev: v0.1.13 hooks: - id: ruff - id: ruff-format diff --git a/src/flask/ctx.py b/src/flask/ctx.py index 4640052142..9b164d3907 100644 --- a/src/flask/ctx.py +++ b/src/flask/ctx.py @@ -115,7 +115,7 @@ def __repr__(self) -> str: def after_this_request( - f: ft.AfterRequestCallable[t.Any] + f: ft.AfterRequestCallable[t.Any], ) -> ft.AfterRequestCallable[t.Any]: """Executes a function after this request. This is useful to modify response objects. The function is passed the response object and has diff --git a/src/flask/helpers.py b/src/flask/helpers.py index ae83a25b77..359a842af8 100644 --- a/src/flask/helpers.py +++ b/src/flask/helpers.py @@ -48,7 +48,7 @@ def get_load_dotenv(default: bool = True) -> bool: def stream_with_context( - generator_or_function: t.Iterator[t.AnyStr] | t.Callable[..., t.Iterator[t.AnyStr]] + generator_or_function: t.Iterator[t.AnyStr] | t.Callable[..., t.Iterator[t.AnyStr]], ) -> t.Iterator[t.AnyStr]: """Request contexts disappear when the response is started on the server. This is done for efficiency reasons and to make it less likely to encounter