Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for get_stream_item_type (0.35 seconds)

  1. fastapi/dependencies/utils.py

    
    _STREAM_ORIGINS = {
        AsyncIterable,
        AsyncIterator,
        AsyncGenerator,
        Iterable,
        Iterator,
        Generator,
    }
    
    
    def get_stream_item_type(annotation: Any) -> Any | None:
        origin = get_origin(annotation)
        if origin is not None and origin in _STREAM_ORIGINS:
            type_args = get_args(annotation)
            if type_args:
    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)
  2. fastapi/routing.py

    from fastapi.dependencies.utils import (
        _should_embed_body_fields,
        get_body_field,
        get_dependant,
        get_flat_dependant,
        get_parameterless_sub_dependant,
        get_stream_item_type,
        get_typed_return_annotation,
        solve_dependencies,
    )
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import (
        EndpointContext,
        FastAPIError,
        RequestValidationError,
    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