MCPcopy
hub / github.com/fastapi/fastapi / _iter_included_route_candidates

Function _iter_included_route_candidates

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

Source from the content-addressed store, hash-verified

1791
1792
1793def _iter_included_route_candidates(routes: Sequence[BaseRoute]) -> Iterator[BaseRoute]:
1794 for route, route_context in _iter_routes_with_context(routes):
1795 if route_context is not None and route_context.starlette_route is not None:
1796 yield route_context.starlette_route
1797 else:
1798 yield route
1799
1800
1801def iter_route_contexts(

Calls 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…