- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 296 for yielded (0.07 seconds)
-
tests/test_stringified_annotation_dependency.py
return ["John Doe", "Jane Doe"] async def close(self) -> None: pass async def get_client() -> AsyncGenerator[DummyClient, None]: client = DummyClient() yield client await client.close() Client = Annotated[DummyClient, Depends(get_client)] @pytest.fixture(name="client") def client_fixture() -> TestClient: app = FastAPI() @app.get("/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/util/Encdec.java
t = (date.getTime() + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64be(t, dst, di); } case TIME_1601_NANOS_64LE -> { t = (date.getTime() + SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L; yield enc_uint64le(t, dst, di); } case TIME_1970_MILLIS_64BE -> enc_uint64be(date.getTime(), dst, di);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17.4K bytes - Click Count (0) -
docs/fr/docs/tutorial/stream-json-lines.md
/// ## Diffuser des JSON Lines avec FastAPI { #stream-json-lines-with-fastapi } Pour diffuser des JSON Lines avec FastAPI, au lieu d'utiliser `return` dans votre fonction de chemin d'accès, utilisez `yield` pour produire chaque élément à tour de rôle. {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:33:45 GMT 2026 - 4.9K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
equalsTester = new EqualsTester(); equalObject1 = new ValidTestObject(1, 2); equalObject2 = new ValidTestObject(1, 2); notEqualObject1 = new ValidTestObject(0, 2); } /** Test null reference yields error */ public void testAddNullReference() { assertThrows(NullPointerException.class, () -> equalsTester.addEqualityGroup((Object) null)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 13.1K bytes - Click Count (0) -
docs_src/sql_databases/tutorial002_py310.py
engine = create_engine(sqlite_url, connect_args=connect_args) def create_db_and_tables(): SQLModel.metadata.create_all(engine) def get_session(): with Session(engine) as session: yield session app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables() @app.post("/heroes/", response_model=HeroPublic)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 2.5K bytes - Click Count (0) -
docs_src/sql_databases/tutorial001_py310.py
engine = create_engine(sqlite_url, connect_args=connect_args) def create_db_and_tables(): SQLModel.metadata.create_all(engine) def get_session(): with Session(engine) as session: yield session app = FastAPI() @app.on_event("startup") def on_startup(): create_db_and_tables() @app.post("/heroes/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 1.7K bytes - Click Count (0) -
docs/zh/docs/tutorial/stream-json-lines.md
/// tip | 提示 如果你想流式传输二进制数据,例如视频或音频,请查看进阶指南:[流式传输数据](../advanced/stream-data.md)。 /// ## 使用 FastAPI 流式传输 JSON Lines { #stream-json-lines-with-fastapi } 要在 FastAPI 中流式传输 JSON Lines,可以在路径操作函数中不用 `return`,而是用 `yield` 逐个产生每个数据项。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 如果你要返回的每个 JSON 项是类型 `Item`(一个 Pydantic 模型),并且这是一个异步函数,你可以将返回类型声明为 `AsyncIterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:29:48 GMT 2026 - 4.2K bytes - Click Count (0) -
internal/s3select/jstream/README.md
fmt.Printf("%v\n ", mv.Value) } ``` output: ``` map[desc:RGB colors:[red green blue]] map[desc:CMYK colors:[cyan magenta yellow black]] ``` likewise, increasing depth level to `3` yields: ``` red green blue cyan magenta yellow black ``` optionally, kev:value pairs can be emitted as an individual struct: ```go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Sep 23 19:35:41 GMT 2024 - 3.2K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/stream-json-lines.md
/// tip 如果你想串流二進位資料,例如影像或音訊,請參考進階指南:[串流資料](../advanced/stream-data.md)。 /// ## 使用 FastAPI 串流 JSON Lines { #stream-json-lines-with-fastapi } 要用 FastAPI 串流 JSON Lines,你可以在你的*路徑操作函式*中改用 `yield` 逐一產生項目,而不是用 `return`。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *} 如果你要回傳的每個 JSON 項目型別都是 `Item`(一個 Pydantic 模型),而且該函式是 async,你可以將回傳型別宣告為 `AsyncIterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.2K bytes - Click Count (0)