Skip to content

Commit

Permalink
Use Union to support Python<3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Jan 15, 2025
1 parent 878cc8c commit 2b354a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olmo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ def _http_get_bytes_range(scheme: str, host_name: str, path: str, bytes_start: i


def save_hf_dataset_to_disk(
dataset: datasets.DatasetDict | datasets.Dataset,
dataset: Union[datasets.DatasetDict, datasets.Dataset],
hf_path: str,
name: Optional[str],
split: str,
Expand Down

0 comments on commit 2b354a4

Please sign in to comment.