Skip to content

Commit 6394536

Browse files
committed
update _stringify_path doc
1 parent e98dbfc commit 6394536

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nibabel/filename_parser.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ def _stringify_path(filepath_or_buffer):
2525
2626
Returns
2727
-------
28-
str_filepath_or_buffer : maybe a string version of the object
28+
str_filepath_or_buffer : str
29+
2930
Notes
3031
-----
3132
Objects supporting the fspath protocol (python 3.6+) are coerced
3233
according to its __fspath__ method.
33-
For backwards compatibility with older pythons, pathlib.Path and
34-
py.path objects are specially coerced.
34+
For backwards compatibility with older pythons, pathlib.Path objects
35+
are specially coerced.
3536
Any other object is passed through unchanged, which includes bytes,
3637
strings, buffers, or anything else that's not even path-like.
3738

0 commit comments

Comments
 (0)