Skip to content

Commit 6e873c6

Browse files
author
Mathieu Scheltienne
committed
run blue instead of black
1 parent d550152 commit 6e873c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nibabel/tests/test_proxy_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ def validate_array_interface_with_dtype(self, pmaker, params):
146146
context.__enter__()
147147
warnings.simplefilter('ignore', np.ComplexWarning)
148148

149-
for dtype in (
150-
np.core.sctypes["float"] + np.core.sctypes["int"] + np.core.sctypes["uint"]
151-
):
149+
for dtype in np.core.sctypes['float'] + np.core.sctypes['int'] + np.core.sctypes['uint']:
152150
# Directly coerce with a dtype
153151
direct = dtype(prox)
154152
# Half-precision is imprecise. Obviously. It's a bad idea, but don't break

nibabel/tests/test_volumeutils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ def test_a2f_nanpos():
597597

598598
def test_a2f_bad_scaling():
599599
# Test that pathological scalers raise an error
600-
NUMERICAL_TYPES = sum([np.core.sctypes[key] for key in ['int', 'uint', 'float', 'complex']], [])
600+
NUMERICAL_TYPES = sum(
601+
[np.core.sctypes[key] for key in ['int', 'uint', 'float', 'complex']], []
602+
)
601603
for in_type, out_type, slope, inter in itertools.product(
602604
NUMERICAL_TYPES,
603605
NUMERICAL_TYPES,

0 commit comments

Comments
 (0)