From ed1703dfcd499dd361421de707de2ffb456227d4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sun, 30 Nov 2025 11:03:08 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- src/flask/app.py | 2 ++ src/flask/blueprints.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/flask/app.py b/src/flask/app.py index 7a6c11bb..28926b14 100644 --- a/src/flask/app.py +++ b/src/flask/app.py @@ -92,6 +92,7 @@ def remove_ctx(f: F) -> F: This is used when a method signature has been updated to take 'ctx', but the overridden method in a subclass has not. """ + def wrapper(self: Flask, *args: t.Any, **kwargs: t.Any) -> t.Any: if args and isinstance(args[0], AppContext): args = args[1:] @@ -109,6 +110,7 @@ def add_ctx(f: F) -> F: This is used when a method calls a super method that expects 'ctx', but the subclass method does not provide it. """ + def wrapper(self: Flask, *args: t.Any, **kwargs: t.Any) -> t.Any: if not args: args = (app_ctx._get_current_object(),) diff --git a/src/flask/blueprints.py b/src/flask/blueprints.py index 7cecb475..9f2d4d57 100644 --- a/src/flask/blueprints.py +++ b/src/flask/blueprints.py @@ -31,6 +31,7 @@ class Blueprint(SansioBlueprint): See :doc:`/blueprints` for more information. """ + def __init__( self, name: str,