mirror of https://github.com/tiangolo/fastapi.git
📝 Add example screenshot for dependencies
This commit is contained in:
parent
b79c13baed
commit
471c9cfc2d
Binary file not shown.
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 65 KiB |
|
|
@ -130,12 +130,9 @@ commons = Depends(CommonQueryParams)
|
|||
{!./src/dependencies/tutorial003.py!}
|
||||
```
|
||||
|
||||
|
||||
But declaring the type is encouraged as that way your editor will know what will be passed as the parameter `commons`, and then it can help you with code completion, type checks, etc:
|
||||
|
||||
```Python hl_lines="19 20 21"
|
||||
{!./src/dependencies/tutorial002.py!}
|
||||
```
|
||||
<img src="/img/tutorial/dependencies/image02.png">
|
||||
|
||||
## Shortcut
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue