Skip to content

Context

faststream.utils.context.builders.Context #

Context(
    real_name="", *, cast=False, default=EMPTY, initial=None
)
Source code in faststream/utils/context/builders.py
def Context(  # noqa: N802
    real_name: str = "",
    *,
    cast: bool = False,
    default: Any = EMPTY,
    initial: Optional[Callable[..., Any]] = None,
) -> Any:
    return Context_(
        real_name=real_name,
        cast=cast,
        default=default,
        initial=initial,
    )