From 05f6d5840a49638b158f4f871d6baf0a5a78e6e6 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Mon, 27 Nov 2023 17:18:12 -0600 Subject: [PATCH] Fix zip type annotations in geometry.py --- pyresample/geometry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyresample/geometry.py b/pyresample/geometry.py index 2c2b52254..d745cba46 100644 --- a/pyresample/geometry.py +++ b/pyresample/geometry.py @@ -345,12 +345,12 @@ def _get_bbox_elements(self, coord_fun, vertices_per_side: Optional[int] = None) def _filter_bbox_nans( self, - dim1_sides: list[np.ndarray], - dim2_sides: list[np.ndarray], + dim1_sides: tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray], + dim2_sides: tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray], ) -> tuple[list[np.ndarray], list[np.ndarray]]: new_dim1_sides = [] new_dim2_sides = [] - for dim1_side, dim2_side in zip(dim1_sides, dim2_sides): + for dim1_side, dim2_side in zip(dim1_sides, dim2_sides, strict=True): is_valid_mask = ~(np.isnan(dim1_side) | np.isnan(dim2_side)) if not is_valid_mask.any(): raise ValueError("Can't compute swath bounding coordinates. At least one side is completely invalid.")