Skip to content

Commit 16c4b0c

Browse files
committed
Add comments
Signed-off-by: Ana Matoso <[email protected]>
1 parent 261c81d commit 16c4b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monai/transforms/utility/dictionary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Hashable, N
10021002

10031003
if data_type is np.ndarray:
10041004
d[self.name] = np.subtract(output[0], output[1])
1005-
elif issubclass(data_type, torch.Tensor):
1006-
d[self.name] = torch.sub(output[0], output[1])
1005+
elif issubclass(data_type, torch.Tensor): # type: ignore
1006+
d[self.name] = torch.sub(output[0], output[1]) # type: ignore
10071007
else:
10081008
raise TypeError(
10091009
f"Unsupported data type: {data_type}, available options are (numpy.ndarray, torch.Tensor, MetaTensor)."

0 commit comments

Comments
 (0)