to_yaml_str# to_yaml_str(self: SupportsModelDump) → str[source]# Create yaml string from dumped model. Parameters: self (SupportsModelDump) – Instance of a class that supports model_dump. Return type: str See also add_yaml_repr