diff --git a/fastapi/cli.py b/fastapi/cli.py index 07407240f..9252b4eed 100644 --- a/fastapi/cli.py +++ b/fastapi/cli.py @@ -5,6 +5,7 @@ except ImportError: # pragma: no cover cli_main = None # type: ignore # cli_main = None # type: ignore + def main() -> None: if not cli_main: # type: ignore[truthy-function] message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'