Skip to content

Commit 7d720d2

Browse files
committed
fix mypy warning
1 parent 41cf400 commit 7d720d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eogrow/pipelines/download_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sqlite3
77
import time
88
from functools import wraps
9-
from typing import Any, Callable, List, Literal, Optional, TypeVar
9+
from typing import Any, Callable, List, Literal, Optional, TypeVar, cast
1010

1111
import fs
1212
import pandas as pd
@@ -285,7 +285,7 @@ def _create_and_save_batch_grid(self) -> None:
285285
if self.config.grid.resolution is not None:
286286
batch_columns = {"resolution": self.config.grid.resolution}
287287
else:
288-
width, height = self.config.grid.image_size
288+
width, height = cast(tuple[int, int], self.config.grid.image_size)
289289
batch_columns = {"width": width, "height": height}
290290

291291
grid = {crs: gdf.assign(**batch_columns) for crs, gdf in grid.items()}

0 commit comments

Comments
 (0)