From 243f283e3d7fa971fbe3d23623706060bd913abb Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 26 Sep 2024 15:37:15 +1000 Subject: [PATCH] Fix linting and mypy errors --- odc/geo/_dask.py | 4 ++-- tests/test_gridspec.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/odc/geo/_dask.py b/odc/geo/_dask.py index 5b69c685..54c534f0 100644 --- a/odc/geo/_dask.py +++ b/odc/geo/_dask.py @@ -1,5 +1,5 @@ from functools import partial -from typing import Any, Dict, Optional, Sequence, Tuple, Union +from typing import Any, Dict, Optional, Tuple, Union from uuid import uuid4 import dask.array as da @@ -15,7 +15,7 @@ def _do_chunked_reproject( - d2s: Dict[Tuple[int, int], Sequence[Tuple[int, int]]], + d2s: Dict[Tuple[int, int], list[Tuple[int, int]]], src_gbt: GeoboxTiles, dst_gbt: GeoboxTiles, dst_idx: Tuple[int, int], diff --git a/tests/test_gridspec.py b/tests/test_gridspec.py index e1810aad..89205832 100644 --- a/tests/test_gridspec.py +++ b/tests/test_gridspec.py @@ -17,9 +17,12 @@ # pylint: disable=protected-access,use-implicit-booleaness-not-comparison # pylint: disable=comparison-with-itself,unnecessary-comprehension + def test_gridspec_small(): print("Starting test for GridSpec") - WGS84GRID30 = GridSpec("EPSG:4326", tile_shape=(5000, 5000), resolution=0.0003, origin=XY(-180, -90)) + WGS84GRID30 = GridSpec( + "EPSG:4326", tile_shape=(5000, 5000), resolution=0.0003, origin=XY(-180, -90) + ) assert WGS84GRID30.tile_shape == (5000, 5000) assert WGS84GRID30.tile_size == XY(1.5, 1.5)