Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

make mypy happy

kshitij123451f6b2e2d16a2
diff --git a/kornia/augmentation/augmentations.py b/kornia/augmentation/augmentations.py
index 82c4cb97b..ed79ca19a 100644
--- a/kornia/augmentation/augmentations.py
+++ b/kornia/augmentation/augmentations.py
@@ -88,7 +88,7 @@ class RandomHorizontalFlip(RandomFlip):
self.p = p
self.return_transform = return_transform
- def forward(self, input: UnionType) -> UnionType:
+ def forward(self, input: UnionType) -> UnionType: # type: ignore
return self.forward_flip(input, random_hflip)
@@ -128,7 +128,7 @@ class RandomVerticalFlip(RandomFlip):
self.p = p
self.return_transform = return_transform
- def forward(self, input: UnionType) -> UnionType:
+ def forward(self, input: UnionType) -> UnionType: # type: ignore
return self.forward_flip(input, random_vflip)