MCPcopy
hub / github.com/fastapi/fastapi / raise_after_yield

Function raise_after_yield

tests/test_dependency_yield_scope.py:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def raise_after_yield() -> Any:
23 yield
24 raise HTTPException(status_code=503, detail="Exception after yield")
25
26
27SessionFuncDep = Annotated[Session, Depends(dep_session, scope="function")]

Callers

nothing calls this directly

Calls 1

HTTPExceptionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…