Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for is_async_gen_callable (0.07 seconds)

  1. fastapi/dependencies/models.py

                _impartial(dunder_unwrapped_call)
            ) or inspect.isgeneratorfunction(_unwrapped_call(dunder_unwrapped_call)):
                return True
            return False
    
        @cached_property
        def is_async_gen_callable(self) -> bool:
            if self.call is None:
                return False  # pragma: no cover
            if inspect.isasyncgenfunction(
                _impartial(self.call)
    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/dependencies/utils.py

            )
            if param_details.depends is not None:
                assert param_details.depends.dependency
                if (
                    (dependant.is_gen_callable or dependant.is_async_gen_callable)
                    and dependant.computed_scope == "request"
                    and param_details.depends.scope == "function"
                ):
                    assert dependant.call
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  3. fastapi/routing.py

                    response.headers.raw.extend(solved_result.response.headers.raw)
                elif dependant.is_async_gen_callable or dependant.is_gen_callable:
                    # Raw streaming with explicit response_class (e.g. StreamingResponse)
                    gen = dependant.call(**solved_result.values)
                    if dependant.is_async_gen_callable:
    
                        async def _async_stream_raw(
    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