Skip to content

Commit 8f095cf

Browse files
author
Matic Lubej
committed
fix mypy cv2 errors
1 parent fbddfa1 commit 8f095cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

eolearn/coregistration/coregistration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def register(
114114
warp_matrix,
115115
warp_mode,
116116
criteria,
117-
valid_mask, # type: ignore[arg-type]
117+
valid_mask,
118118
self.gauss_kernel_size,
119119
)
120120
except cv2.error as cv2err: # pylint: disable=catching-non-exception

eolearn/features/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def spatially_resize_image(
162162
if resize_library is ResizeLib.CV2:
163163
resize_function = partial(cv2.resize, dsize=size, interpolation=resize_method.get_cv2_method(data.dtype))
164164
else:
165+
# type: ignore[arg-type]
165166
resize_function = partial(_pil_resize_ndarray, size=size, method=resize_method.get_pil_method())
166167

167168
resized_data = _apply_to_spatial_axes(resize_function, data, spatial_axes)

0 commit comments

Comments
 (0)