MCPcopy Index your code
hub / github.com/fastapi/fastapi / test

Function test

tests/test_annotated.py:82–83  ·  view source on GitHub ↗
(var: Annotated[str, Query()] = "bar")

Source from the content-addressed store, hash-verified

80 @app.get("/test1")
81 @app.get("/test2")
82 async def test(var: Annotated[str, Query()] = "bar"):
83 return {"foo": var}
84
85 client = TestClient(app)
86 response = client.get("/test1")

Callers

nothing calls this directly

Calls 1

QueryClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…