Debian Codegraph @

docs_src/extra_models/tutorial005_py310.py

raw
1 from fastapi import FastAPI
2
3 app = FastAPI()
4
5
6 @app.get("/keyword-weights/", response_model=dict[str, float])
7 async def read_keyword_weights():
8 return {"foo": 2.3, "bar": 3.4}