Skip to content

Commit ee50279

Browse files
committed
STY: black
1 parent 7974db9 commit ee50279

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

nipype/interfaces/dipy/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ def get_default_args(func):
9999
100100
"""
101101
signature = inspect.signature(func)
102-
return {k: v.default for k, v in signature.parameters.items()
103-
if v.default is not inspect.Parameter.empty
104-
}
102+
return {
103+
k: v.default
104+
for k, v in signature.parameters.items()
105+
if v.default is not inspect.Parameter.empty
106+
}
105107

106108

107109
def convert_to_traits_type(dipy_type, is_file=False):

nipype/interfaces/dipy/tests/test_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
no_dipy,
1111
get_dipy_workflows,
1212
get_default_args,
13-
dipy_version
13+
dipy_version,
1414
)
1515

1616

@@ -115,8 +115,9 @@ def test_create_interface_specs():
115115
assert "out_params" in current_params.keys()
116116

117117

118-
@pytest.mark.skipif(no_dipy() or Version(dipy_version()) < Version("1.4"),
119-
reason="DIPY >=1.4 required")
118+
@pytest.mark.skipif(
119+
no_dipy() or Version(dipy_version()) < Version("1.4"), reason="DIPY >=1.4 required"
120+
)
120121
def test_get_default_args():
121122
from dipy.utils.deprecator import deprecated_params
122123

@@ -131,8 +132,7 @@ def test2(dummy=11, x=3):
131132
def test3(dummy=11, x=3):
132133
return dummy, x
133134

134-
@deprecated_params(['dummy', 'x'], None, '0.3', '0.5',
135-
alternative='test2.y')
135+
@deprecated_params(['dummy', 'x'], None, '0.3', '0.5', alternative='test2.y')
136136
def test4(dummy=11, x=3):
137137
return dummy, x
138138

0 commit comments

Comments
 (0)