Skip to content

Context

faststream.utils.context.Context #

Context(
    real_name: str = "",
    *,
    cast: bool = False,
    default: Any = _empty
) -> Any
Source code in faststream/utils/context/builders.py
def Context(
    real_name: str = "",
    *,
    cast: bool = False,
    default: Any = _empty,
) -> Any:
    return Context_(
        real_name=real_name,
        cast=cast,
        default=default,
    )

Last update: 2023-11-13