update dev dependencies

This commit is contained in:
David Lord 2026-05-18 16:35:44 -07:00
parent 9fcd34c9f3
commit 954f5684e4
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
3 changed files with 432 additions and 374 deletions

View file

@ -468,7 +468,7 @@ _app_option = click.Option(
def _set_debug(ctx: click.Context, param: click.Option, value: bool) -> bool | None:
# If the flag isn't provided, it will default to False. Don't use
# that, let debug be set by env in that case.
source = ctx.get_parameter_source(param.name) # type: ignore[arg-type]
source = ctx.get_parameter_source(param.name)
if source is not None and source in (
ParameterSource.DEFAULT,
@ -777,7 +777,7 @@ def show_server_banner(debug: bool, app_import_path: str | None) -> None:
click.echo(f" * Debug mode: {'on' if debug else 'off'}")
class CertParamType(click.ParamType):
class CertParamType(click.ParamType[str | os.PathLike[str] | ssl.SSLContext]):
"""Click option type for the ``--cert`` option. Allows either an
existing file, the string ``'adhoc'``, or an import for a
:class:`~ssl.SSLContext` object.
@ -803,7 +803,7 @@ class CertParamType(click.ParamType):
try:
return self.path_type(value, param, ctx)
except click.BadParameter:
value = click.STRING(value, param, ctx).lower()
value = click.STRING(value, param, ctx).lower() # type: ignore[union-attr]
if value == "adhoc":
try: