MCPcopy
hub / github.com/fastapi/fastapi / get_client

Function get_client

tests/test_stringified_annotation_dependency.py:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22async def get_client() -> AsyncGenerator[DummyClient, None]:
23 client = DummyClient()
24 yield client
25 await client.close()
26
27
28Client = Annotated[DummyClient, Depends(get_client)]

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
DummyClientClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…