From: Sebastián Ramírez Date: Sun, 23 Dec 2018 17:29:59 +0000 (+0400) Subject: :memo: Add example screenshot for dependencies X-Git-Tag: 0.1.13~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=471c9cfc2d92db88d54763c66eb4f21af4150ff4;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add example screenshot for dependencies --- diff --git a/docs/img/tutorial/dependencies/image02.png b/docs/img/tutorial/dependencies/image02.png index b18f05d98b..06e45ad4c6 100644 Binary files a/docs/img/tutorial/dependencies/image02.png and b/docs/img/tutorial/dependencies/image02.png differ diff --git a/docs/tutorial/dependencies/classes-as-dependencies.md b/docs/tutorial/dependencies/classes-as-dependencies.md index 9f3e51c767..a6c9cf057b 100644 --- a/docs/tutorial/dependencies/classes-as-dependencies.md +++ b/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!} -``` + ## Shortcut