Skip to content

Path

faststream.utils.context.builders.Path #

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

Last update: 2023-11-13