Skip to content

Commit d8c39c0

Browse files
STY: Apply ruff rule F841
F841 Local variable is assigned to but never used
1 parent 09c1418 commit d8c39c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

niworkflows/interfaces/tests/test_bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def make_empty_nii_with_dtype(fname, dtype):
571571
for s in source_file:
572572
make_empty_nii_with_dtype(s, source_dtype)
573573

574-
prep, save = make_prep_and_save(
574+
prep, _save = make_prep_and_save(
575575
interface,
576576
base_directory=str(tmp_path),
577577
data_dtype='source',

niworkflows/interfaces/tests/test_itk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_applytfms(tmpdir, ext, copy_dtype, in_dtype):
5050

5151
ifargs = {'copy_dtype': copy_dtype, 'reference_image': in_file}
5252
args = (in_file, in_xform, ifargs, 0, str(tmpdir))
53-
out_file, cmdline = _applytfms(args)
53+
out_file, _cmdline = _applytfms(args)
5454

5555
assert out_file == str(tmpdir / (f'src_xform-00000{ext}'))
5656

0 commit comments

Comments
 (0)