Coverage for docs_src/extra_models/tutorial005_py39.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-08 03:53 +0000

1from fastapi import FastAPI 1abcd

2 

3app = FastAPI() 1abcd

4 

5 

6@app.get("/keyword-weights/", response_model=dict[str, float]) 1abcd

7async def read_keyword_weights(): 1abcd

8 return {"foo": 2.3, "bar": 3.4} 1abcd