]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Add example screenshot for dependencies
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 23 Dec 2018 17:29:59 +0000 (21:29 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sun, 23 Dec 2018 17:29:59 +0000 (21:29 +0400)
docs/img/tutorial/dependencies/image02.png
docs/tutorial/dependencies/classes-as-dependencies.md

index b18f05d98b4c3dfdf97b16f97cb025e2adb6e409..06e45ad4c63bc6eca7d610eb0c477bed723e77fe 100644 (file)
Binary files a/docs/img/tutorial/dependencies/image02.png and b/docs/img/tutorial/dependencies/image02.png differ
index 9f3e51c76711a7d3a9723c737b6e4f148f2f22ac..a6c9cf057b38b219905af0a74025fe5e3e5c9235 100644 (file)
@@ -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