Skip to content

Commit ace4e52

Browse files
committed
fix linter
Signed-off-by: Arthur Dujardin <arthurdujardin.dev@gmail.com>
1 parent 163e770 commit ace4e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/data/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def decollate_batch(batch, detach: bool = True, pad=True, fill_value=None):
647647
if isinstance(batch, np.ndarray):
648648
if batch.ndim == 0:
649649
return batch.item()
650-
out_list = list(batch)
650+
out_list = list(batch) # type: ignore[assignment]
651651
if out_list[0].ndim == 0 and detach:
652652
return [t.item() for t in out_list]
653653
return out_list

0 commit comments

Comments
 (0)