Skip to content

Commit 6f37f5f

Browse files
committed
fix types
1 parent e794c3c commit 6f37f5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

luxonis_ml/data/datasets/luxonis_dataset.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from concurrent.futures import ThreadPoolExecutor
88
from contextlib import suppress
99
from functools import cached_property
10+
from os import PathLike
1011
from pathlib import Path, PurePosixPath
1112
from typing import Any, Literal, overload
1213

@@ -470,7 +471,10 @@ def _load_splits(self, path: Path) -> dict[str, list[str]]:
470471
return json.load(f)
471472

472473
def _ignore_files_not_in_uuid_set(
473-
self, dir_path: str, names: list[str], uuids_to_keep: set[str]
474+
self,
475+
dir_path: PathLike[str] | str,
476+
names: list[str],
477+
uuids_to_keep: set[str],
474478
) -> set[str]:
475479
if not uuids_to_keep:
476480
return set()

0 commit comments

Comments
 (0)