(
self, child_context: "_RouterIncludeContext"
)
| 1326 | ) |
| 1327 | |
| 1328 | def combine( |
| 1329 | self, child_context: "_RouterIncludeContext" |
| 1330 | ) -> "_RouterIncludeContext": |
| 1331 | return _RouterIncludeContext( |
| 1332 | included_router=child_context.included_router, |
| 1333 | prefix=self.prefix + child_context.prefix, |
| 1334 | tags=[*self.tags, *child_context.tags], |
| 1335 | dependencies=[*self.dependencies, *child_context.dependencies], |
| 1336 | default_response_class=get_value_or_default( |
| 1337 | child_context.default_response_class, self.default_response_class |
| 1338 | ), |
| 1339 | responses={**self.responses, **child_context.responses}, |
| 1340 | callbacks=[*self.callbacks, *child_context.callbacks], |
| 1341 | deprecated=self.deprecated or child_context.deprecated, |
| 1342 | include_in_schema=self.include_in_schema |
| 1343 | and child_context.include_in_schema, |
| 1344 | generate_unique_id_function=get_value_or_default( |
| 1345 | child_context.generate_unique_id_function, |
| 1346 | self.generate_unique_id_function, |
| 1347 | ), |
| 1348 | strict_content_type=get_value_or_default( |
| 1349 | child_context.strict_content_type, self.strict_content_type |
| 1350 | ), |
| 1351 | dependency_overrides_provider=self.dependency_overrides_provider, |
| 1352 | ) |
| 1353 | |
| 1354 | def path_for(self, route: _RouteWithPath) -> str: |
| 1355 | return self.prefix + route.path |
no test coverage detected