Skip to content

Commit

Permalink
Fix linting and mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Sep 26, 2024
1 parent 1911942 commit 243f283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions odc/geo/_dask.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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],
Expand Down
5 changes: 4 additions & 1 deletion tests/test_gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 243f283

Please sign in to comment.