model_dump_yaml

model_dump_yaml(model: pydantic.BaseModel, *, exclude_none: bool = False, exclude_unset: bool = False, exclude: set[str] | None = None, allow_unicode: bool = True, indent: int | None = None, sort_keys: bool = False) str[source]

Dump the model as YAML string.