diff --git a/nitransforms/io/x5.py b/nitransforms/io/x5.py index f4c14113..463a1336 100644 --- a/nitransforms/io/x5.py +++ b/nitransforms/io/x5.py @@ -88,14 +88,14 @@ def to_filename(fname: str | Path, x5_list: List[X5Transform]): Parameters ---------- - fname : :obj:`os.pathlike` + fname : :obj:`os.PathLike` The file name (preferably with the ".x5" extension) in which transforms will be stored. x5_list : :obj:`list` The list of transforms to be stored in the output dataset. Returns ------- - fname : :obj:`os.pathlike` + fname : :obj:`os.PathLike` File containing the transform(s). """ diff --git a/nitransforms/resampling.py b/nitransforms/resampling.py index 390825c5..53750206 100644 --- a/nitransforms/resampling.py +++ b/nitransforms/resampling.py @@ -63,7 +63,7 @@ async def _apply_serial( ---------- data : :obj:`~numpy.ndarray` The input data array. - spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike` + spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike` The image object containing the data to be resampled in reference space targets : :obj:`~numpy.ndarray` @@ -162,10 +162,10 @@ def apply( ---------- transform: :obj:`~nitransforms.base.TransformBase` The 3D, 3D+t, or 4D transform through which data will be resampled. - spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike` + spatialimage : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike` The image object containing the data to be resampled in reference space - reference : :obj:`~nibabel.spatialimages.SpatialImage` or `os.pathlike` + reference : :obj:`~nibabel.spatialimages.SpatialImage` or :obj:`os.PathLike` The image, surface, or combination thereof containing the coordinates of samples that will be sampled. order : :obj:`int`, optional