[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2025-11-10 16:18:38 +00:00 committed by GitHub
parent ec942ef2f3
commit a6ca4d23bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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