- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for vs (0.2 sec)
-
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
```Python hl_lines="17" {!> ../../../docs_src/dependencies/tutorial002_py310.py!} ``` **FastAPI**는 `CommonQueryParams` 클래스를 호출합니다. 이것은 해당 클래스의 "인스턴스"를 생성하고 그 인스턴스는 함수의 매개변수 `commons`로 전달됩니다. ## 타입 힌팅 vs `Depends` 위 코드에서 `CommonQueryParams`를 두 번 작성한 방식에 주목하십시오: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 마지막 `CommonQueryParams` 변수를 보면: ```Python
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Feb 11 13:48:31 GMT 2024 - 8K 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)] ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 18:01:58 GMT 2024 - 12.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md
=== "Python 3.6+" ```Python hl_lines="19" {!> ../../../docs_src/dependencies/tutorial002.py!} ``` **FastAPI** 调用 `CommonQueryParams` 类。这将创建该类的一个 "实例",该实例将作为参数 `commons` 被传递给你的函数。 ## 类型注解 vs `Depends` 注意,我们在上面的代码中编写了两次`CommonQueryParams`: ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` 最后的 `CommonQueryParams`: ```Python ... = Depends(CommonQueryParams)
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 6.5K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
``` **FastAPI** calls the `CommonQueryParams` class. This creates an "instance" of that class and the instance will be passed as the parameter `commons` to your function. ## Type annotation vs `Depends` Notice how we write `CommonQueryParams` twice in the above code: === "Python 3.8+" ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.4K bytes - Viewed (0)