Skip to content

Commit 7b87f60

Browse files
Datata1Copilot
andauthored
Update src/codesphere/core/base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 700ff10 commit 7b87f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codesphere/core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def to_yaml(self, *, by_alias: bool = True, exclude_none: bool = False) -> str:
6868
YAML string representation of the model.
6969
"""
7070
data = self.to_dict(by_alias=by_alias, exclude_none=exclude_none)
71-
return yaml.dump(
71+
return yaml.safe_dump(
7272
data, default_flow_style=False, allow_unicode=True, sort_keys=False
7373
)
7474

0 commit comments

Comments
 (0)