Any for CertParamType type

This commit is contained in:
David Lord 2026-05-31 07:42:46 -07:00
parent 954f5684e4
commit 36e4a824f3
No known key found for this signature in database

View file

@ -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'}") click.echo(f" * Debug mode: {'on' if debug else 'off'}")
class CertParamType(click.ParamType[str | os.PathLike[str] | ssl.SSLContext]): class CertParamType(click.ParamType[t.Any]):
"""Click option type for the ``--cert`` option. Allows either an """Click option type for the ``--cert`` option. Allows either an
existing file, the string ``'adhoc'``, or an import for a existing file, the string ``'adhoc'``, or an import for a
:class:`~ssl.SSLContext` object. :class:`~ssl.SSLContext` object.