Skip to content

Commit e720cf6

Browse files
DimitriPapadopouloseffigies
authored andcommitted
STY: Apply ruff/Pylint rule PLE0101
PLE0101 Explicit return in `__init__`
1 parent 47f83b0 commit e720cf6

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

nipype/interfaces/camino/dti.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ class TrackDT(Track):
936936

937937
def __init__(self, command=None, **inputs):
938938
inputs["inputmodel"] = "dt"
939-
return super().__init__(command, **inputs)
939+
super().__init__(command, **inputs)
940940

941941

942942
class TrackPICoInputSpec(TrackInputSpec):
@@ -973,7 +973,7 @@ class TrackPICo(Track):
973973

974974
def __init__(self, command=None, **inputs):
975975
inputs["inputmodel"] = "pico"
976-
return super().__init__(command, **inputs)
976+
super().__init__(command, **inputs)
977977

978978

979979
class TrackBedpostxDeterInputSpec(TrackInputSpec):
@@ -1023,7 +1023,7 @@ class TrackBedpostxDeter(Track):
10231023

10241024
def __init__(self, command=None, **inputs):
10251025
inputs["inputmodel"] = "bedpostx_dyad"
1026-
return super().__init__(command, **inputs)
1026+
super().__init__(command, **inputs)
10271027

10281028

10291029
class TrackBedpostxProbaInputSpec(TrackInputSpec):
@@ -1084,7 +1084,7 @@ class TrackBedpostxProba(Track):
10841084

10851085
def __init__(self, command=None, **inputs):
10861086
inputs["inputmodel"] = "bedpostx"
1087-
return super().__init__(command, **inputs)
1087+
super().__init__(command, **inputs)
10881088

10891089

10901090
class TrackBayesDiracInputSpec(TrackInputSpec):
@@ -1185,7 +1185,7 @@ class TrackBayesDirac(Track):
11851185

11861186
def __init__(self, command=None, **inputs):
11871187
inputs["inputmodel"] = "bayesdirac"
1188-
return super().__init__(command, **inputs)
1188+
super().__init__(command, **inputs)
11891189

11901190

11911191
class TrackBallStick(Track):
@@ -1204,7 +1204,7 @@ class TrackBallStick(Track):
12041204

12051205
def __init__(self, command=None, **inputs):
12061206
inputs["inputmodel"] = "ballstick"
1207-
return super().__init__(command, **inputs)
1207+
super().__init__(command, **inputs)
12081208

12091209

12101210
class TrackBootstrapInputSpec(TrackInputSpec):
@@ -1266,7 +1266,7 @@ class TrackBootstrap(Track):
12661266
input_spec = TrackBootstrapInputSpec
12671267

12681268
def __init__(self, command=None, **inputs):
1269-
return super().__init__(command, **inputs)
1269+
super().__init__(command, **inputs)
12701270

12711271

12721272
class ComputeMeanDiffusivityInputSpec(CommandLineInputSpec):

nipype/interfaces/fsl/dti.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def __init__(self, **inputs):
813813
("Deprecated: Please use create_bedpostx_pipeline instead"),
814814
DeprecationWarning,
815815
)
816-
return super().__init__(**inputs)
816+
super().__init__(**inputs)
817817

818818
def _run_interface(self, runtime):
819819
for i in range(1, len(self.inputs.thsamples) + 1):

nipype/interfaces/fsl/epi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ def __init__(self, **inputs):
14041404
),
14051405
DeprecationWarning,
14061406
)
1407-
return super().__init__(**inputs)
1407+
super().__init__(**inputs)
14081408

14091409
def _run_interface(self, runtime):
14101410
runtime = super()._run_interface(runtime)
@@ -1507,7 +1507,7 @@ def __init__(self, **inputs):
15071507
("Deprecated: Please use nipype.interfaces.fsl.epi.Eddy instead"),
15081508
DeprecationWarning,
15091509
)
1510-
return super().__init__(**inputs)
1510+
super().__init__(**inputs)
15111511

15121512
def _run_interface(self, runtime):
15131513
runtime = super()._run_interface(runtime)

nipype/interfaces/mrtrix/tracking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class DiffusionTensorStreamlineTrack(StreamlineTrack):
432432

433433
def __init__(self, command=None, **inputs):
434434
inputs["inputmodel"] = "DT_STREAM"
435-
return super().__init__(command, **inputs)
435+
super().__init__(command, **inputs)
436436

437437

438438
class ProbabilisticSphericallyDeconvolutedStreamlineTrackInputSpec(
@@ -466,7 +466,7 @@ class ProbabilisticSphericallyDeconvolutedStreamlineTrack(StreamlineTrack):
466466

467467
def __init__(self, command=None, **inputs):
468468
inputs["inputmodel"] = "SD_PROB"
469-
return super().__init__(command, **inputs)
469+
super().__init__(command, **inputs)
470470

471471

472472
class SphericallyDeconvolutedStreamlineTrack(StreamlineTrack):
@@ -491,4 +491,4 @@ class SphericallyDeconvolutedStreamlineTrack(StreamlineTrack):
491491

492492
def __init__(self, command=None, **inputs):
493493
inputs["inputmodel"] = "SD_STREAM"
494-
return super().__init__(command, **inputs)
494+
super().__init__(command, **inputs)

0 commit comments

Comments
 (0)