@@ -63,8 +63,8 @@ class CmdArgs(simple_parsing.helpers.FrozenSerializable):
63
63
overwrite_version: Semantic version of the dataset to be set.
64
64
"""
65
65
66
- jsonld : epath .PathLike
67
- data_dir : epath .PathLike
66
+ jsonld : epath .Path
67
+ data_dir : epath .Path
68
68
# Need to override the default use of `Enum.name` for choice options.
69
69
file_format : str = simple_parsing .choice (
70
70
* (file_format .value for file_format in file_adapters .FileFormat ),
@@ -78,8 +78,8 @@ class CmdArgs(simple_parsing.helpers.FrozenSerializable):
78
78
nargs = '?' ,
79
79
)
80
80
mapping : str | None = None
81
- download_dir : epath .PathLike | None = None
82
- publish_dir : epath .PathLike | None = None
81
+ download_dir : epath .Path | None = None
82
+ publish_dir : epath .Path | None = None
83
83
skip_if_published : bool = False
84
84
overwrite : bool = False
85
85
overwrite_version : str | None = None
@@ -130,8 +130,8 @@ def prepare_croissant_builder(args: CmdArgs) -> None:
130
130
cli_utils .download_and_prepare (
131
131
builder = builder ,
132
132
download_config = None ,
133
- download_dir = epath . Path ( args .download_dir ) if args . download_dir else None ,
134
- publish_dir = epath . Path ( args .publish_dir ) if args . publish_dir else None ,
133
+ download_dir = args .download_dir ,
134
+ publish_dir = args .publish_dir ,
135
135
skip_if_published = args .skip_if_published ,
136
136
overwrite = args .overwrite ,
137
137
)
0 commit comments