Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 28, 2024
1 parent 380f20e commit b3cc41d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rio_tiler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def _calculateRatio(
def _convert_to_raster_space(
src_dst: Union[DatasetReader, DatasetWriter, WarpedVRT],
poly_coordinates: List,
op: Optional[Callable[[float], Union[int, float]]] = None,
op: Optional[Callable[[float], Any]] = None,
) -> List[str]:
# NOTE: we could remove this once we have rasterio >= 1.4.2
op = op or numpy.floor
Expand All @@ -670,7 +670,7 @@ def create_cutline(
src_dst: Union[DatasetReader, DatasetWriter, WarpedVRT],
geometry: Dict,
geometry_crs: CRS = None,
op: Optional[Callable[[float], Union[int, float]]] = None,
op: Optional[Callable[[float], Any]] = None,
) -> str:
"""
Create WKT Polygon Cutline for GDALWarpOptions.
Expand Down

0 comments on commit b3cc41d

Please sign in to comment.