Skip to content

Commit ac03471

Browse files
committed
Ignore mypy
1 parent 030db10 commit ac03471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchvision/datasets/_optical_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def __getitem__(self, index: int) -> Union[T1, T2]:
7474

7575
if self._has_builtin_flow_mask or valid_flow_mask is not None:
7676
# The `or valid_flow_mask is not None` part is here because the mask can be generated within a transform
77-
return img1, img2, flow, valid_flow_mask
77+
return img1, img2, flow, valid_flow_mask # type: ignore[return-value]
7878
else:
79-
return img1, img2, flow
79+
return img1, img2, flow # type: ignore[return-value]
8080

8181
def __len__(self) -> int:
8282
return len(self._image_list)

0 commit comments

Comments
 (0)