Skip to content

Path

faststream.Path #

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