diff --git a/rioxarray/raster_writer.py b/rioxarray/raster_writer.py index 24c111d0..c737a03b 100644 --- a/rioxarray/raster_writer.py +++ b/rioxarray/raster_writer.py @@ -22,7 +22,7 @@ from dask import is_dask_collection except ImportError: - def is_dask_collection(_): + def is_dask_collection(_) -> bool: # type: ignore """ Replacement method to check if it is a dask collection """ diff --git a/rioxarray/rioxarray.py b/rioxarray/rioxarray.py index cc349005..029ca7b9 100644 --- a/rioxarray/rioxarray.py +++ b/rioxarray/rioxarray.py @@ -500,7 +500,7 @@ def estimate_utm_crs(self, datum_name: str = "WGS 84") -> rasterio.crs.CRS: # pylint: disable=import-outside-toplevel try: from pyproj.aoi import AreaOfInterest - from pyproj.database import query_utm_crs_info # type: ignore + from pyproj.database import query_utm_crs_info except ImportError: raise RuntimeError("pyproj 3+ required for estimate_utm_crs.") from None