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