- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 226 for list (0.13 sec)
-
docs/az/docs/fastapi-people.md
Bu istifadəçilər keçən ay [GitHub-da başqalarının suallarına](help-fastapi.md#help-others-with-questions-in-github){.internal-link target=_blank} ən çox kömək edənlərdir. ☕ {% if people %} <div class="user-list user-list-center"> {% for user in people.last_month_experts[:10] %}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.9K bytes - Viewed (0) -
docs/tr/docs/fastapi-people.md
Geçtiğimiz ay boyunca [GitHub'da diğerlerine en çok yardımcı olan](help-fastapi.md#help-others-with-questions-in-github){.internal-link target=_blank} kullanıcılar. ☕ {% if people %} <div class="user-list user-list-center"> {% for user in people.last_month_experts[:10] %}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 16 23:54:24 GMT 2024 - 6.8K bytes - Viewed (0) -
docs/uk/docs/python-types.md
У цьому випадку, `str` це параметр типу переданий у `List` (або `list` у Python 3.9 і вище). Це означає: "змінна `items` це `list`, і кожен з елементів у цьому списку - `str`". !!! tip Якщо ви використовуєте Python 3.9 і вище, вам не потрібно імпортувати `List` з `typing`, ви можете використовувати натомість тип `list`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 19.7K bytes - Viewed (0) -
docs/ru/docs/python-types.md
Чтобы объявить эти типы и внутренние типы, вы можете использовать стандартный Python-модуль `typing`. Он существует специально для поддержки подсказок этих типов. #### `List` Например, давайте определим переменную как `list`, состоящий из `str`. Импортируйте `List` из `typing` (с заглавной `L`):
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
```Python my_list: list[str] ``` Und in Python-Versionen vor 3.9: ```Python from typing import List my_list: List[str] ``` Das ist alles Standard-Python-Syntax für Typdeklarationen. Verwenden Sie dieselbe Standardsyntax für Modellattribute mit inneren Typen. In unserem Beispiel können wir also bewirken, dass `tags` spezifisch eine „Liste von Strings“ ist: === "Python 3.10+" ```Python hl_lines="12"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.4K bytes - Viewed (0) -
pdm_build.py
# Get main optional dependencies, extras optional_dependencies: Dict[str, List[str]] = metadata.get( "optional-dependencies", {} ) # Get custom optional dependencies name to always include in this (non-slim) package include_optional_dependencies: List[str] = config.get( "include-optional-dependencies", [] )
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 30 06:38:13 GMT 2024 - 1.7K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
3. The `Author` dataclass includes a list of `Item` dataclasses. 4. The `Author` dataclass is used as the `response_model` parameter. 5. You can use other standard type annotations with dataclasses as the request body. In this case, it's a list of `Item` dataclasses. 6. Here we are returning a dictionary that contains `items` which is a list of dataclasses.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
tests/test_query.py
def test_query_list(): response = client.get("/query/list/?device_ids=1&device_ids=2") assert response.status_code == 200 assert response.json() == [1, 2] def test_query_list_empty(): response = client.get("/query/list/") assert response.status_code == 422 def test_query_list_default(): response = client.get("/query/list-default/?device_ids=1&device_ids=2")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 11.4K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007.py
from typing import List import yaml from fastapi import FastAPI, HTTPException, Request from pydantic import BaseModel, ValidationError app = FastAPI() class Item(BaseModel): name: str tags: List[str] @app.post( "/items/", openapi_extra={ "requestBody": { "content": {"application/x-yaml": {"schema": Item.model_json_schema()}}, "required": True, }, },
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 822 bytes - Viewed (0) -
docs/em/docs/tutorial/query-params-str-validations.md
"foo", "bar" ] } ``` #### ⚙️ `list` 👆 💪 ⚙️ `list` 🔗 ↩️ `List[str]` (⚖️ `list[str]` 🐍 3️⃣.9️⃣ ➕): ```Python hl_lines="7" {!../../../docs_src/query_params_str_validations/tutorial013.py!} ``` !!! note ✔️ 🤯 👈 👉 💼, FastAPI 🏆 🚫 ✅ 🎚 📇. 🖼, `List[int]` 🔜 ✅ (& 📄) 👈 🎚 📇 🔢. ✋️ `list` 😞 🚫🔜. ## 📣 🌅 🗃 👆 💪 🚮 🌅 ℹ 🔃 🔢.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.9K bytes - Viewed (0)