-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI (dask pinning, test with rasterize, mypy) (#809)
passing tests and pre-commits
- Loading branch information
1 parent
02bc276
commit 803a66e
Showing
13 changed files
with
108 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
from typing import Any | ||
|
||
import numpy as np | ||
from xarray import DataArray, DataTree | ||
|
||
__all__ = ["ArrayLike", "ColorLike", "DTypeLike", "Raster_T"] | ||
|
||
try: | ||
from numpy.typing import DTypeLike, NDArray | ||
|
||
ArrayLike = NDArray[np.float64] | ||
IntArrayLike = NDArray[np.int64] # or any np.integer | ||
from numpy.typing import DTypeLike, NDArray | ||
|
||
except (ImportError, TypeError): | ||
ArrayLike = np.ndarray # type: ignore[misc] | ||
IntArrayLike = np.ndarray # type: ignore[misc] | ||
DTypeLike = np.dtype # type: ignore[misc, assignment] | ||
ArrayLike = NDArray[np.floating[Any]] | ||
IntArrayLike = NDArray[np.integer[Any]] | ||
|
||
Raster_T = DataArray | DataTree | ||
ColorLike = tuple[float, ...] | str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.