improve formatting for and re-word doc string

This commit is contained in:
Jan Vollmer 2025-01-14 21:44:03 +01:00
parent ecdad20ba4
commit d70de472f6
No known key found for this signature in database
GPG Key ID: 19473D3A5AB433DA
1 changed files with 7 additions and 4 deletions

View File

@ -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__(