Browse Source

Merge 0fcffab788 into e6d09027e5

pull/5273/merge
ilyaTT 19 hours ago
committed by GitHub
parent
commit
a8e5b62786
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      fastapi/routing.py

3
fastapi/routing.py

@ -1231,6 +1231,7 @@ class APIRouter(routing.Router):
"""
),
] = Default(generate_unique_id),
route_class_override: Optional[Type[APIRoute]] = None,
) -> None:
"""
Include another `APIRouter` in the same current `APIRouter`.
@ -1325,7 +1326,7 @@ class APIRouter(routing.Router):
and include_in_schema,
response_class=use_response_class,
name=route.name,
route_class_override=type(route),
route_class_override=route_class_override or type(route),
callbacks=current_callbacks,
openapi_extra=route.openapi_extra,
generate_unique_id_function=current_generate_unique_id,

Loading…
Cancel
Save