- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for commands (0.18 sec)
-
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
## Аннотация типа или `Depends` Обратите внимание, что в приведенном выше коде мы два раза пишем `CommonQueryParams`: === "Python 3.6+ без Annotated" !!! tip "Подсказка" Рекомендуется использовать версию с `Annotated` если возможно. ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 12 11:12:19 GMT 2024 - 16.3K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
**FastAPI** ruft die Klasse `CommonQueryParams` auf. Dadurch wird eine „Instanz“ dieser Klasse erstellt und die Instanz wird als Parameter `commons` an Ihre Funktion überreicht. ## Typannotation vs. `Depends` Beachten Sie, wie wir `CommonQueryParams` im obigen Code zweimal schreiben: === "Python 3.8+" ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` === "Python 3.8+ nicht annotiert"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:01:58 GMT 2024 - 12.3K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` ...you write: === "Python 3.8+" ```Python commons: Annotated[CommonQueryParams, Depends()]
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.4K bytes - Viewed (0)