From f062b89072cefb70fa7e40d7f31aa5f280b20bc4 Mon Sep 17 00:00:00 2001 From: pramod5403 Date: Mon, 10 Nov 2025 21:57:32 +0530 Subject: [PATCH] Fix click module path: use click.utils.UNSET instead of click._utils.UNSET The correct path is click.utils.UNSET, not click._utils.UNSET. This fixes the AttributeError that was causing all tests to fail. --- src/flask/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask/cli.py b/src/flask/cli.py index faa55ca4..a190e788 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -860,7 +860,7 @@ def _validate_key(ctx: click.Context, param: click.Parameter, value: t.Any) -> t else: if ( cert is not None - and cert != click._utils.UNSET + and cert != click.utils.UNSET and not (is_adhoc or is_context) ): raise click.BadParameter('Required when using "--cert".', ctx, param)