Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastapi/fastapi
/ dependency_a
Function
dependency_a
docs_src/dependencies/tutorial008_py310.py:4–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
4
async
def
dependency_a():
5
dep_a = generate_dep_a()
6
try
:
7
yield
dep_a
8
finally:
9
dep_a.close()
10
11
12
async
def
dependency_b(dep_a=Depends(dependency_a)):
Callers
nothing calls this directly
Calls
1
close
Method · 0.45
Tested by
no test coverage detected