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_an_py310.py:6–11 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
5
6
async
def
dependency_a():
7
dep_a = generate_dep_a()
8
try
:
9
yield
dep_a
10
finally:
11
dep_a.close()
12
13
14
async
def
dependency_b(dep_a: Annotated[DepA, Depends(dependency_a)]):
Callers
nothing calls this directly
Calls
1
close
Method · 0.45
Tested by
no test coverage detected