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

Function dependency_c

docs_src/dependencies/tutorial008_py310.py:20–25  ·  view source on GitHub ↗
(dep_b=Depends(dependency_b))

Source from the content-addressed store, hash-verified

18
19
20async def dependency_c(dep_b=Depends(dependency_b)):
21 dep_c = generate_dep_c()
22 try:
23 yield dep_c
24 finally:
25 dep_c.close(dep_b)

Callers

nothing calls this directly

Calls 2

DependsClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected