Browse Source

fix example

pull/14193/head
ProfiAnton 9 months ago
parent
commit
3dcd96e920
  1. 2
      fastapi/applications.py

2
fastapi/applications.py

@ -349,7 +349,7 @@ class FastAPI(Starlette):
from fastapi import Depends, FastAPI
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])
```
"""

Loading…
Cancel
Save