Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 22 of 22 for __iter__ (0.04 seconds)

  1. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    /// warning | 注意
    
    これは多かれ少なかれ、「高度な」発想です。
    
    **FastAPI** を使い始めたばかりの方は、とりあえずスキップした方がよいかもしれません。
    
    ///
    
    Pythonでは、[以下の2つのメソッドを持つクラスを作成する: `__enter__()`と`__exit__()`](https://docs.python.org/3/reference/datamodel.html#context-managers)ことでコンテキストマネージャを作成することができます。
    
    また、依存関数の中で`with`や`async with`文を使用することによって`yield`を持つ **FastAPI** の依存関係の中でそれらを使用することができます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  2. fastapi/routing.py

                                data_str=_serialize_data(item).decode("utf-8")
                            )
    
                    if dependant.is_async_gen_callable:
                        sse_aiter: AsyncIterator[Any] = gen.__aiter__()
                    else:
                        sse_aiter = iterate_in_threadpool(gen)
    
                    @asynccontextmanager
                    async def _sse_producer_cm() -> AsyncIterator[
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top