We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98dbfc commit 6394536Copy full SHA for 6394536
nibabel/filename_parser.py
@@ -25,13 +25,14 @@ def _stringify_path(filepath_or_buffer):
25
26
Returns
27
-------
28
- str_filepath_or_buffer : maybe a string version of the object
+ str_filepath_or_buffer : str
29
+
30
Notes
31
-----
32
Objects supporting the fspath protocol (python 3.6+) are coerced
33
according to its __fspath__ method.
- For backwards compatibility with older pythons, pathlib.Path and
34
- py.path objects are specially coerced.
+ For backwards compatibility with older pythons, pathlib.Path objects
35
+ are specially coerced.
36
Any other object is passed through unchanged, which includes bytes,
37
strings, buffers, or anything else that's not even path-like.
38
0 commit comments