8000 STY: Apply ruff/refurb preview rule FURB192 · nipy/nibabel@9132469 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9132469

Browse files
STY: Apply ruff/refurb preview rule FURB192
FURB192 Prefer `min` over `sorted()` to compute the minimum value in a sequence
1 parent 83b6235 commit 9132469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/nicom/dicomwrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def applies(self, dcm_wrp) -> bool:
565565
warnings.warn(
566566
'A multi-stack file was passed without an explicit filter, just using lowest StackID'
567567
)
568-
self._selected = sorted(stack_ids)[0]
568+
self._selected = min(stack_ids)
569569
return True
570570
return False
571571

0 commit comments

Comments
 (0)
0