Skip to content

Commit f3ab679

Browse files
committed
Fix mypy error
Signed-off-by: Zifu Wang <[email protected]>
1 parent 3e4f714 commit f3ab679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/losses/dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.Tensor:
413413
else:
414414
raise ValueError(f'Unsupported reduction: {self.reduction}, available options are ["mean", "sum", "none"].')
415415

416-
return f # type: ignore[arg-type]
416+
return f
417417

418418

419419
class GeneralizedWassersteinDiceLoss(_Loss):

0 commit comments

Comments
 (0)