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 56542ac commit 1af655aCopy full SHA for 1af655a
nibabel/streamlines/__init__.py
@@ -57,7 +57,7 @@ def detect_format(fileobj):
57
except OSError:
58
pass
59
60
- if isinstance(fileobj, (str, Path)):
+ if isinstance(fileobj, (str, os.PathLike)):
61
_, ext = os.path.splitext(fileobj)
62
return FORMATS.get(ext.lower())
63
0 commit comments