- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for set (0.18 sec)
-
scripts/lint.sh
#!/usr/bin/env bash set -e set -x mypy fastapi ruff check fastapi tests docs_src scripts
Shell Script - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 00:03:14 GMT 2024 - 125 bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial005.py!} ``` !!! tip `{"name", "description"}` 语法创建一个具有这两个值的 `set`。 等同于 `set(["name", "description"])`。 #### 使用 `list` 而不是 `set` 如果你忘记使用 `set` 而是使用 `list` 或 `tuple`,FastAPI 仍会将其转换为 `set` 并且正常工作: ```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial006.py!} ``` ## 总结
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial005.py!} ``` !!! tip "豆知識" `{"name", "description"}`の構文はこれら2つの値をもつ`set`を作成します。 これは`set(["name", "description"])`と同等です。 #### `set`の代わりに`list`を使用する もし`set`を使用することを忘れて、代わりに`list`や`tuple`を使用しても、FastAPIはそれを`set`に変換して正しく動作します: ```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial006.py!} ``` ## まとめ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
.github/workflows/test.yml
runs-on: ubuntu-latest steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.11" # Issue ref: https://github.com/actions/setup-python/issues/436 # cache: "pip"
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 4.4K bytes - Viewed (2) -
fastapi/utils.py
}: return True current_status_code = int(status_code) return not (current_status_code < 200 or current_status_code in {204, 205, 304}) def get_path_param_names(path: str) -> Set[str]: return set(re.findall("{(.*?)}", path)) def create_response_field( name: str, type_: Type[Any], class_validators: Optional[Dict[str, Validator]] = None, default: Optional[Any] = Undefined,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.8K bytes - Viewed (0) -
.github/workflows/publish.yml
id-token: write steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.10" # Issue ref: https://github.com/actions/setup-python/issues/436 # cache: "pip"
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 06:38:13 GMT 2024 - 1K bytes - Viewed (0) -
docs/en/docs/benchmarks.md
* If you are comparing FastAPI, compare it against a web application framework (or set of tools) that provides data validation, serialization and documentation, like Flask-apispec, NestJS, Molten, etc. Frameworks with integrated automatic data validation, serialization and documentation....
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/en/docs/tutorial/metadata.md
* **Swagger UI**: served at `/docs`. * You can set its URL with the parameter `docs_url`. * You can disable it by setting `docs_url=None`. * **ReDoc**: served at `/redoc`. * You can set its URL with the parameter `redoc_url`. * You can disable it by setting `redoc_url=None`. For example, to set Swagger UI to be served at `/documentation` and disable ReDoc: ```Python hl_lines="3"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Mar 31 23:52:53 GMT 2024 - 5.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-data-types.md
* `frozenset`: * リクエストとレスポンスでは`set`と同じように扱われます: * リクエストでは、リストが読み込まれ、重複を排除して`set`に変換されます。 * レスポンスでは`set`が`list`に変換されます。 * 生成されたスキーマは`set`の値が一意であることを指定します(JSON Schemaの`uniqueItems`を使用します)。 * `bytes`: * Pythonの標準的な`bytes`です。 * リクエストとレスポンスでは`str`として扱われます。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 3.2K bytes - Viewed (0) -
scripts/format.sh
#!/bin/sh -e set -x ruff check fastapi tests docs_src scripts --fix
Shell Script - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 00:03:14 GMT 2024 - 112 bytes - Viewed (0)