- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for Suplee (0.26 sec)
-
tests/test_tuples.py
@app.post("/tuple-of-models/") def post_tuple_of_models(square: Tuple[Coordinate, Coordinate]): return square @app.post("/tuple-form/") def hello(values: Tuple[int, int] = Form()): return values client = TestClient(app) def test_model_with_tuple_valid(): data = {"items": [["foo", "bar"], ["baz", "whatelse"]]} response = client.post("/model-with-tuple/", json=data)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 11.8K bytes - Viewed (0) -
docs/en/docs/python-types.md
Notice that the variable `item` is one of the elements in the list `items`. And still, the editor knows it is a `str`, and provides support for that. #### Tuple and Set You would do the same to declare `tuple`s and `set`s: === "Python 3.9+" ```Python hl_lines="1" {!> ../../../docs_src/python_types/tutorial007_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
fastapi/dependencies/models.py
# Store the path to be able to re-generate a dependable from it in overrides self.path = path # Save the cache key at creation to optimize performance
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
{!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### Объявление `list` с указанием типов для вложенных элементов Объявление типов для элементов (внутренних типов) вложенных в такие типы как `list`, `dict`, `tuple`: * Если у вас Python версии ниже чем 3.9, импортируйте их аналог из модуля `typing` * Передайте внутренний(ие) тип(ы) как "параметры типа", используя квадратные скобки: `[` и `]` В Python версии 3.9 это будет выглядеть так:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.9K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
Äquivalent zu `set(["name", "description"])`. #### `list`en statt `set`s verwenden Wenn Sie vergessen, ein `set` zu verwenden, und stattdessen eine `list`e oder ein `tuple` übergeben, wird FastAPI die dennoch in ein `set` konvertieren, und es wird korrekt funktionieren: === "Python 3.10+" ```Python hl_lines="29 35" {!> ../../../docs_src/response_model/tutorial006_py310.py!}
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 20:26:58 GMT 2024 - 19.9K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
``` !!! tip ❕ `{"name", "description"}` ✍ `set` ⏮️ 📚 2️⃣ 💲. ⚫️ 🌓 `set(["name", "description"])`. #### ⚙️ `list`Ⓜ ↩️ `set`Ⓜ 🚥 👆 💭 ⚙️ `set` & ⚙️ `list` ⚖️ `tuple` ↩️, FastAPI 🔜 🗜 ⚫️ `set` & ⚫️ 🔜 👷 ☑: === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="31 37" {!> ../../../docs_src/response_model/tutorial006.py!} ``` === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 16K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* 📝 Tweak and improve docs for Request Files. PR [#4470](https://github.com/tiangolo/fastapi/pull/4470) by [@tiangolo](https://github.com/tiangolo). ### Fixes * 🐛 Fix bug preventing to use OpenAPI when using tuples. PR [#3874](https://github.com/tiangolo/fastapi/pull/3874) by [@victorbenichoux](https://github.com/victorbenichoux).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Apr 28 00:28:00 GMT 2024 - 385.5K bytes - Viewed (1) -
docs/es/docs/python-types.md
El editor aún sabe que es un `str` y provee soporte para ello. #### Tuples y Sets Harías lo mismo para declarar `tuple`s y `set`s: ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial007.py!} ``` Esto significa: * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0) -
fastapi/security/utils.py
from typing import Optional, Tuple def get_authorization_scheme_param( authorization_header_value: Optional[str], ) -> Tuple[str, str]: if not authorization_header_value: return "", "" scheme, _, param = authorization_header_value.partition(" ")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Nov 13 14:26:09 GMT 2022 - 293 bytes - Viewed (0) -
fastapi/dependencies/utils.py
dependency_overrides_provider: Optional[Any] = None, dependency_cache: Optional[Dict[Tuple[Callable[..., Any], Tuple[str]], Any]] = None, async_exit_stack: AsyncExitStack, ) -> Tuple[ Dict[str, Any], List[Any], Optional[StarletteBackgroundTasks], Response, Dict[Tuple[Callable[..., Any], Tuple[str]], Any], ]: values: Dict[str, Any] = {} errors: List[Any] = []
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0)