mirror of https://github.com/tiangolo/fastapi.git
improve formatting for and re-word doc string
This commit is contained in:
parent
ecdad20ba4
commit
d70de472f6
|
|
@ -868,10 +868,13 @@ class APIRouter(routing.Router):
|
|||
] = Default(generate_unique_id),
|
||||
defer_init: Annotated[
|
||||
bool,
|
||||
Doc("""
|
||||
By default every route will defer its initialization upon usage.
|
||||
This flag disables the behavior for the routes defined in this router, causing the routes to initialize immediately.
|
||||
"""),
|
||||
Doc(
|
||||
"""
|
||||
By default, every route will defer its initialization until the first call.
|
||||
This flag can be used to deactivate this behavior for the routes defined in this router,
|
||||
causing the routes to initialize immediately when they are defined.
|
||||
"""
|
||||
),
|
||||
] = True,
|
||||
) -> None:
|
||||
super().__init__(
|
||||
|
|
|
|||
Loading…
Reference in New Issue