Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastapi/fastapi
/ dependency_b
Function
dependency_b
docs_src/dependencies/tutorial008_py310.py:12–17 ·
view source on GitHub ↗
(dep_a=Depends(dependency_a))
Source
from the content-addressed store, hash-verified
10
11
12
async
def
dependency_b(dep_a=Depends(dependency_a)):
13
dep_b = generate_dep_b()
14
try
:
15
yield
dep_b
16
finally:
17
dep_b.close(dep_a)
18
19
20
async
def
dependency_c(dep_b=Depends(dependency_b)):
Callers
nothing calls this directly
Calls
2
Depends
Class · 0.90
close
Method · 0.45
Tested by
no test coverage detected