MCPcopy
hub / github.com/fastapi/fastapi / _iter_routes_with_context

Function _iter_routes_with_context

fastapi/routing.py:1815–1823  ·  view source on GitHub ↗
(
    routes: Sequence[BaseRoute],
)

Source from the content-addressed store, hash-verified

1813
1814
1815def _iter_routes_with_context(
1816 routes: Sequence[BaseRoute],
1817) -> Iterator[tuple[BaseRoute, _EffectiveRouteContext | None]]:
1818 for route in routes:
1819 if isinstance(route, _IncludedRouter):
1820 for route_context in route.effective_route_contexts():
1821 yield route_context.original_route, route_context
1822 else:
1823 yield route, None
1824
1825
1826def _normalize_frontend_path(path: str) -> str:

Callers 3

iter_route_contextsFunction · 0.85
include_routerMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…