Browse Source

📝 Add example screenshot for dependencies

pull/11/head
Sebastián Ramírez 6 years ago
parent
commit
471c9cfc2d
  1. BIN
      docs/img/tutorial/dependencies/image02.png
  2. 5
      docs/tutorial/dependencies/classes-as-dependencies.md

BIN
docs/img/tutorial/dependencies/image02.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 65 KiB

5
docs/tutorial/dependencies/classes-as-dependencies.md

@ -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…
Cancel
Save