Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed Jun 26, 2024
1 parent bf6b3d7 commit d9fd888
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synthesize/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def from_file(cls, file: Path) -> Config:
tags = tags_from_path(str(file))

if "yaml" in tags:
return cls.parse_yaml(file.read_text())
return cls.model_validate_yaml(file.read_text())
else:
raise NotImplementedError("Currently, only YAML files are supported.")

Expand Down
2 changes: 1 addition & 1 deletion synthesize/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ class Model(BaseModel):
)

@classmethod
def parse_yaml(cls: Type[C], y: str) -> C:
def model_validate_yaml(cls: Type[C], y: str) -> C:
return cls.model_validate(yaml.safe_load(y))

0 comments on commit d9fd888

Please sign in to comment.