Skip to content

Commit

Permalink
Clarify backward behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Aug 9, 2023
1 parent 28966ee commit 63e7ae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geoutils/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@
Number = Union[int, float, np.integer, np.floating] # type: ignore

# Make an array-like type (since the array-like numpy type only exists in numpy>=1.20)
ArrayLike = Union[np.ndarray, np.ma.masked_array, List[Any], Tuple[Any]] # type: ignore
DTypeLike = Union[str, type, np.dtype] # type: ignore
ArrayLike = Union[np.ndarray, np.ma.masked_array, List[Any], Tuple[Any]] # type: ignore

# Define generic types for NumPy array and masked-array (behaves as "Any" before 3.9 and plugin)
NDArrayNum = np.ndarray # type: ignore
NDArrayBool = np.ndarray # type: ignore
MArrayNum = np.ma.masked_array # type: ignore
MArrayBool = np.ma.masked_array # type: ignore

0 comments on commit 63e7ae3

Please sign in to comment.