- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 1,089 for itens (0.34 seconds)
-
tests/test_additional_properties.py
from inline_snapshot import snapshot from pydantic import BaseModel app = FastAPI() class Items(BaseModel): items: dict[str, int] @app.post("/foo") def foo(items: Items): return items.items client = TestClient(app) def test_additional_properties_post(): response = client.post("/foo", json={"items": {"foo": 1, "bar": 2}}) assert response.status_code == 200, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 4.1K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial007.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 11.6K bytes - Click Count (0) -
tests/test_strict_content_type_nested.py
inner_strict = APIRouter(prefix="/strict", strict_content_type=True) inner_default = APIRouter(prefix="/default") @inner_strict.post("/items/") async def inner_strict_post(data: dict): return data @inner_default.post("/items/") async def inner_default_post(data: dict): return data outer_router.include_router(inner_strict) outer_router.include_router(inner_default)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 2.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
*/ private E extract() { E[] items = this.items; E x = items[takeIndex]; items[takeIndex] = null; takeIndex = inc(takeIndex); --count; return x; } /** * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying * monitor. */ void removeAt(int i) { E[] items = this.items; // if removing front item, just advance
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 22.4K bytes - Click Count (0) -
docs/en/docs/tutorial/bigger-applications.md
* look for the subpackage `routers` (the directory at `app/routers/`)... * and from it, import the submodule `items` (the file at `app/routers/items.py`) and `users` (the file at `app/routers/users.py`)... The module `items` will have a variable `router` (`items.router`). This is the same one we created in the file `app/routers/items.py`, it's an `APIRouter` object. And then we do the same for the module `users`.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 19.2K bytes - Click Count (0) -
tests/test_generate_unique_id_function.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 75K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/bigger-applications.md
/// ## 另一個帶有 `APIRouter` 的模組 { #another-module-with-apirouter } 假設你還有一個模組 `app/routers/items.py`,專門處理應用程式中的「items」。 你有以下路徑操作: * `/items/` * `/items/{item_id}` 其結構與 `app/routers/users.py` 相同。 但我們想要更聰明地簡化一些程式碼。 我們知道這個模組中的所有路徑操作都有相同的: * 路徑 `prefix`:`/items` * `tags`:(只有一個標籤:`items`) * 額外的 `responses` * `dependencies`:它們都需要我們先前建立的 `X-Token` 相依性Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 18.7K bytes - Click Count (0) -
docs/ru/docs/tutorial/bigger-applications.md
* найти подпакет `routers` (каталог `app/routers/`)... * и импортировать из него подмодули `items` (файл `app/routers/items.py`) и `users` (файл `app/routers/users.py`)... В модуле `items` будет переменная `router` (`items.router`). Это та же самая, которую мы создали в файле `app/routers/items.py`, это объект `APIRouter`. И затем мы делаем то же самое для модуля `users`. Мы также могли бы импортировать их так:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 29.7K bytes - Click Count (0) -
docs_src/stream_json_lines/tutorial001_py310.py
def stream_items_no_async() -> Iterable[Item]: for item in items: yield item @app.get("/items/stream-no-annotation") async def stream_items_no_annotation(): for item in items: yield item @app.get("/items/stream-no-async-no-annotation") def stream_items_no_async_no_annotation(): for item in items:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 936 bytes - Click Count (0) -
docs/de/docs/tutorial/bigger-applications.md
* Suche nach dem Subpackage `routers` (das Verzeichnis unter `app/routers/`) ... * und importiere daraus die Submodule `items` (die Datei unter `app/routers/items.py`) und `users` (die Datei unter `app/routers/users.py`) ... Das Modul `items` verfügt über eine Variable `router` (`items.router`). Das ist dieselbe, die wir in der Datei `app/routers/items.py` erstellt haben, es ist ein `APIRouter`-Objekt. Und dann machen wir das gleiche für das Modul `users`.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 21.9K bytes - Click Count (0)