@@ -63,7 +63,9 @@ def _run(
6363 is_factory : bool = False ,
6464) -> None :
6565 try :
66- use_uvicorn_app = get_import_string (path = path , app_name = app , is_factory = is_factory )
66+ use_uvicorn_app = get_import_string (
67+ path = path , app_name = app , is_factory = is_factory
68+ )
6769 except FastAPICLIException as e :
6870 logger .error (str (e ))
6971 raise typer .Exit (code = 1 ) from None
@@ -85,6 +87,7 @@ def _run(
8587 padding = (1 , 2 ),
8688 style = "green" ,
8789 )
90+ print (Padding (panel , 1 ))
8891 if not uvicorn :
8992 raise FastAPICLIException (
9093 "Could not import Uvicorn, try running 'pip install uvicorn'"
@@ -148,7 +151,9 @@ def dev(
148151 ] = True ,
149152 factory : Annotated [
150153 bool ,
151- typer .Option (help = "Treat [bold]path[bold] as an application factory, i.e. a () -> <ASGI app> callable." )
154+ typer .Option (
155+ help = "Treat [bold]path[/bold] as an application factory, i.e. a () -> <ASGI app> callable."
156+ ),
152157 ] = False ,
153158) -> Any :
154159 """
@@ -242,7 +247,9 @@ def run(
242247 ] = True ,
243248 factory : Annotated [
244249 bool ,
245- typer .Option (help = "Treat [bold]path[bold] as an application factory, i.e. a () -> <ASGI app> callable." )
250+ typer .Option (
251+ help = "Treat [bold]path[/bold] as an application factory, i.e. a () -> <ASGI app> callable."
252+ ),
246253 ] = False ,
247254) -> Any :
248255 """
@@ -280,7 +287,7 @@ def run(
280287 app = app ,
281288 command = "run" ,
282289 proxy_headers = proxy_headers ,
283- is_factory = factory
290+ is_factory = factory ,
284291 )
285292
286293
0 commit comments