mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-03 23:05:52 -04:00
📝 Add example screenshot for dependencies
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user