Skip to content

Commit 9ed2aa0

Browse files
authored
Merge pull request #2100 from friggog/fix/loadable
Support pathlib Paths in Loadable
2 parents c02fdce + 5e3bf51 commit 9ed2aa0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

trimesh/typed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
from typing import IO, Dict, List, Optional, Sequence, Tuple, Union
23

34
# our default integer and floating point types
@@ -11,7 +12,7 @@
1112

1213
# most loader routes take `file_obj` which can either be
1314
# a file-like object or a file path
14-
Loadable = Union[str, IO]
15+
Loadable = Union[str, Path, IO]
1516

1617
__all__ = [
1718
"NDArray",

0 commit comments

Comments
 (0)