Skip to content

Commit ea4a36e

Browse files
committed
FIX: Fixed length typing hints
1 parent bd31b9d commit ea4a36e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

niworkflows/interfaces/cifti.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
File,
3838
traits,
3939
SimpleInterface,
40-
Directory,
4140
)
4241
import templateflow.api as tf
4342

@@ -168,7 +167,7 @@ def _run_interface(self, runtime):
168167
return runtime
169168

170169

171-
def _prepare_cifti(surface_density: str) -> typing.List[list, str, dict]:
170+
def _prepare_cifti(surface_density: str) -> typing.Tuple[list, str, dict]:
172171
"""
173172
Fetch the required templates needed for CIFTI-2 generation, based on input surface density.
174173
@@ -265,8 +264,8 @@ def _prepare_cifti(surface_density: str) -> typing.List[list, str, dict]:
265264
def _create_cifti_image(
266265
bold_file: str,
267266
volume_label: str,
268-
bold_surfs: typing.List[str, str],
269-
surface_labels: typing.List[str, str],
267+
bold_surfs: typing.Tuple[str, str],
268+
surface_labels: typing.Tuple[str, str],
270269
tr: float,
271270
metadata: typing.Optional[dict] = None,
272271
):
@@ -280,9 +279,9 @@ def _create_cifti_image(
280279
volume_label
281280
Subcortical label file
282281
bold_surfs
283-
BOLD surface timeseries [L,R]
282+
BOLD surface timeseries (L,R)
284283
surface_labels
285-
Surface label files used to remove medial wall
284+
Surface label files used to remove medial wall (L,R)
286285
tr
287286
BOLD repetition time
288287
metadata

0 commit comments

Comments
 (0)