Skip to content

Commit 0cb7c39

Browse files
committed
update docstrings to accept str or os.PathLike
1 parent 6056014 commit 0cb7c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/loadsave.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def load(filename, **kwargs):
2525
2626
Parameters
2727
----------
28-
filename : string
28+
filename : str or os.PathLike
2929
specification of file to load
3030
\*\*kwargs : keyword arguments
3131
Keyword arguments to format-specific load
@@ -89,7 +89,7 @@ def save(img, filename):
8989
----------
9090
img : ``SpatialImage``
9191
image to save
92-
filename : str
92+
filename : str or os.PathLike
9393
filename (often implying filenames) to which to save `img`.
9494
9595
Returns

0 commit comments

Comments
 (0)