Skip to content

Commit

Permalink
Use canonical name for numpy bool type
Browse files Browse the repository at this point in the history
fixes false positive in mypy
  • Loading branch information
Kirill888 committed Dec 27, 2022
1 parent 1d6035d commit 47b4227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odc/geo/_rgba.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _np_to_rgba(
elif nodata is not None:
valid = r != nodata
else:
valid = np.ones(r.shape, dtype=np.bool8)
valid = np.ones(r.shape, dtype=np.bool_)

rgba[..., 3] = valid.astype("uint8") * (0xFF)
for idx, band in enumerate([r, g, b]):
Expand Down

0 comments on commit 47b4227

Please sign in to comment.