MCPcopy Create free account
hub / github.com/fastapi/fastapi / dependency_c

Function dependency_c

docs_src/dependencies/tutorial008_an_py310.py:22–27  ·  view source on GitHub ↗
(dep_b: Annotated[DepB, Depends(dependency_b)])

Source from the content-addressed store, hash-verified

20
21
22async def dependency_c(dep_b: Annotated[DepB, Depends(dependency_b)]):
23 dep_c = generate_dep_c()
24 try:
25 yield dep_c
26 finally:
27 dep_c.close(dep_b)

Callers

nothing calls this directly

Calls 2

DependsClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected