mirror of https://github.com/tiangolo/fastapi.git
fix example
This commit is contained in:
parent
5c6cda0304
commit
3dcd96e920
|
|
@ -349,7 +349,7 @@ class FastAPI(Starlette):
|
||||||
from fastapi import Depends, FastAPI
|
from fastapi import Depends, FastAPI
|
||||||
|
|
||||||
from .dependencies import func_dep_1, func_dep_2
|
from .dependencies import func_dep_1, func_dep_2
|
||||||
annotated_dep=Annotated[str,lambda:"annotated"]
|
annotated_dep=Annotated[str,Depends(lambda:"annotated")]
|
||||||
app = FastAPI(dependencies=[Depends(func_dep_1), Depends(func_dep_2),annotated_dep])
|
app = FastAPI(dependencies=[Depends(func_dep_1), Depends(func_dep_2),annotated_dep])
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue