write_pydantic_yaml

write_pydantic_yaml(model: pydantic.BaseModel, path: str | Path | TextIO, *, exclude: set[str] | None = None, exclude_none: bool = False, exclude_unset: bool = False, encoding: str | None = None, newline: str | None = None, indent: int | None = None, allow_unicode: bool = True, sort_keys: bool = False) None[source]

Write a model to a YAML file.