Skip to content

Commit 3316b6c

Browse files
committed
maint: ignore mypy false positives
1 parent 7bcd90e commit 3316b6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

odc/geo/_dask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ def _src(idx: dict):
139139
b_shape = tuple(ch[i] for ch, i in zip(dst_chunks, idx))
140140
dsk[k] = (np.full, b_shape, fill_value, src.dtype)
141141

142-
dsk = HighLevelGraph.from_collections(name, dsk, dependencies=(src,))
142+
dsk = HighLevelGraph.from_collections(name, dsk, dependencies=(src,)) # type: ignore
143143

144144
return da.Array(dsk, name, chunks=dst_chunks, dtype=dtype, shape=dst_shape)

odc/geo/_rgba.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def to_rgba(
157157
data = _np_to_rgba(r, g, b, nodata, vmin, vmax)
158158

159159
coords = dict(_b.coords.items())
160-
coords.update(band=xr.DataArray(data=["r", "g", "b", "a"], dims=("band",)))
160+
coords.update(band=xr.DataArray(data=["r", "g", "b", "a"], dims=("band",))) # type: ignore
161161

162162
rgba = xr.DataArray(data, coords=coords, dims=dims)
163163
return rgba

0 commit comments

Comments
 (0)