You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="A path to a Python file or package directory (with [blue]__init__.py[/blue] files) containing a [bold]FastAPI[/bold] app. If not provided, a default set of paths will be tried."
242
242
),
@@ -262,7 +262,7 @@ def dev(
262
262
),
263
263
] =True,
264
264
reload_dir: Annotated[
265
-
Union[list[Path], None],
265
+
list[Path]|None,
266
266
typer.Option(
267
267
help="Set reload directories explicitly, instead of using the current working directory."
268
268
),
@@ -274,13 +274,13 @@ def dev(
274
274
),
275
275
] ="",
276
276
app: Annotated[
277
-
Union[str, None],
277
+
str|None,
278
278
typer.Option(
279
279
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
280
280
),
281
281
] =None,
282
282
entrypoint: Annotated[
283
-
Union[str, None],
283
+
str|None,
284
284
typer.Option(
285
285
"--entrypoint",
286
286
"-e",
@@ -294,7 +294,7 @@ def dev(
294
294
),
295
295
] =True,
296
296
forwarded_allow_ips: Annotated[
297
-
Union[str, None],
297
+
str|None,
298
298
typer.Option(
299
299
help="Comma separated list of IP Addresses to trust with proxy headers. The literal '*' means trust everything."
300
300
),
@@ -343,7 +343,7 @@ def dev(
343
343
@app.command()
344
344
defrun(
345
345
path: Annotated[
346
-
Union[Path, None],
346
+
Path|None,
347
347
typer.Argument(
348
348
help="A path to a Python file or package directory (with [blue]__init__.py[/blue] files) containing a [bold]FastAPI[/bold] app. If not provided, a default set of paths will be tried."
349
349
),
@@ -369,7 +369,7 @@ def run(
369
369
),
370
370
] =False,
371
371
workers: Annotated[
372
-
Union[int, None],
372
+
int|None,
373
373
typer.Option(
374
374
help="Use multiple worker processes. Mutually exclusive with the --reload flag."
375
375
),
@@ -381,13 +381,13 @@ def run(
381
381
),
382
382
] ="",
383
383
app: Annotated[
384
-
Union[str, None],
384
+
str|None,
385
385
typer.Option(
386
386
help="The name of the variable that contains the [bold]FastAPI[/bold] app in the imported module or package. If not provided, it is detected automatically."
387
387
),
388
388
] =None,
389
389
entrypoint: Annotated[
390
-
Union[str, None],
390
+
str|None,
391
391
typer.Option(
392
392
"--entrypoint",
393
393
"-e",
@@ -401,7 +401,7 @@ def run(
401
401
),
402
402
] =True,
403
403
forwarded_allow_ips: Annotated[
404
-
Union[str, None],
404
+
str|None,
405
405
typer.Option(
406
406
help="Comma separated list of IP Addresses to trust with proxy headers. The literal '*' means trust everything."
0 commit comments