Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for stream_bare_async (0.26 seconds)

  1. tests/test_stream_bare_type.py

    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
    
    
    app = FastAPI()
    
    
    @app.get("/items/stream-bare-async")
    async def stream_bare_async() -> AsyncIterable:
        yield {"name": "foo"}
    
    
    @app.get("/items/stream-bare-sync")
    def stream_bare_sync() -> Iterable:
        yield {"name": "bar"}
    
    
    client = TestClient(app)
    
    
    def test_stream_bare_async_iterable():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top