Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for isgeneratorfunction (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/dependencies/models.py

        @cached_property
        def is_gen_callable(self) -> bool:
            if self.call is None:
                return False  # pragma: no cover
            if inspect.isgeneratorfunction(
                _impartial(self.call)
            ) or inspect.isgeneratorfunction(_unwrapped_call(self.call)):
                return True
            if inspect.isclass(_unwrapped_call(self.call)):
                return False
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  2. fastapi/routing.py

                lifespan_context: Lifespan[Any] = _DefaultLifespan(self)
            elif inspect.isasyncgenfunction(lifespan):
                lifespan_context = asynccontextmanager(lifespan)
            elif inspect.isgeneratorfunction(lifespan):
                lifespan_context = _wrap_gen_lifespan_context(lifespan)
            else:
                lifespan_context = lifespan
            self.lifespan_context = lifespan_context
    
    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