From a6ca4d23bc934d2ae6d47128634551a73e9249ca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 16:18:38 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- src/flask/cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/flask/cli.py b/src/flask/cli.py index 2c59c77c..faa55ca4 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -858,7 +858,12 @@ def _validate_key(ctx: click.Context, param: click.Parameter, value: t.Any) -> t ctx.params["cert"] = cert, value else: - if cert is not None and cert != click._utils.UNSET and not (is_adhoc or is_context): raise click.BadParameter('Required when using "--cert".', ctx, param) + if ( + cert is not None + and cert != click._utils.UNSET + and not (is_adhoc or is_context) + ): + raise click.BadParameter('Required when using "--cert".', ctx, param) return value