Skip to content
3 changes: 2 additions & 1 deletion kedro-datasets/kedro_datasets/dask/csv_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from __future__ import annotations

import os
from copy import deepcopy
from typing import Any

Expand Down Expand Up @@ -53,7 +54,7 @@ class CSVDataset(AbstractDataset[dd.DataFrame, dd.DataFrame]):

def __init__( # noqa: PLR0913
self,
filepath: str,
filepath: str | os.PathLike,
load_args: dict[str, Any] | None = None,
save_args: dict[str, Any] | None = None,
credentials: dict[str, Any] | None = None,
Expand Down
3 changes: 2 additions & 1 deletion kedro-datasets/kedro_datasets/dask/parquet_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from __future__ import annotations

import os
from copy import deepcopy
from typing import Any

Expand Down Expand Up @@ -78,7 +79,7 @@ class ParquetDataset(AbstractDataset[dd.DataFrame, dd.DataFrame]):
def __init__( # noqa: PLR0913
self,
*,
filepath: str,
filepath: str | os.PathLike,
load_args: dict[str, Any] | None = None,
save_args: dict[str, Any] | None = None,
credentials: dict[str, Any] | None = None,
Expand Down
Loading