Skip to content

Commit 33d4af8

Browse files
authored
Merge pull request #242 from nipy/doc/fix-pathlike-references
DOC: Fix references to ``os.PathLike``
2 parents 2e73ee9 + a35cc18 commit 33d4af8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

nitransforms/io/x5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def to_filename(fname: str | Path, x5_list: List[X5Transform]):
8888
8989
Parameters
9090
----------
91-
fname : :obj:`os.pathlike`
91+
fname : :obj:`os.PathLike`
9292
The file name (preferably with the ".x5" extension) in which transforms will be stored.
9393
x5_list : :obj:`list`
9494
The list of transforms to be stored in the output dataset.
9595
9696
Returns
9797
-------
98-
fname : :obj:`os.pathlike`
98+
fname : :obj:`os.PathLike`
9999
File containing the transform(s).
100100
101101
"""

nitransforms/resampling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def _apply_serial(
6363
----------
6464
data : :obj:`~numpy.ndarray`
6565
The input data array.
66-
spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike`
66+
spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike`
6767
The image object containing the data to be resampled in reference
6868
space
6969
targets : :obj:`~numpy.ndarray`
@@ -162,10 +162,10 @@ def apply(
162162
----------
163163
transform: :obj:`~nitransforms.base.TransformBase`
164164
The 3D, 3D+t, or 4D transform through which data will be resampled.
165-
spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike`
165+
spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike`
166166
The image object containing the data to be resampled in reference
167167
space
168-
reference : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike`
168+
reference : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike`
169169
The image, surface, or combination thereof containing the coordinates
170170
of samples that will be sampled.
171171
order : :obj:`int`, optional

0 commit comments

Comments
 (0)