write_pydantic_yaml

write_pydantic_yaml(model: pydantic.BaseModel, path: str | Path | TextIO, *, exclude_none: bool = False, exclude_unset: bool = False, encoding: str | None = None, newline: str | None = None) None[source]

Write a model to a YAML file.