Skip to content

Commit

Permalink
Use Path converter instead of validator
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Nov 25, 2024
1 parent 91ae549 commit 4a55bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/persistence/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def write_json(self, object: dict, path_constructor: PathConstructor) -> None:
class LocalFileSystemObjectWriter(ObjectWriter):
"""Class for persisting JSON serializable dicts locally."""

folder_path_prefix: Path = field(validator=instance_of(Path), default=Path("."))
folder_path_prefix: Path = field(converter=Path, default=Path("."))
"""The prefix of the folder path where the results are stored.
The filename will be created automatically and create or override the
file under this path. The file path must exist."""
Expand Down

0 comments on commit 4a55bc5

Please sign in to comment.