Skip to content

Commit

Permalink
Add type
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 14, 2023
1 parent 2094575 commit 860c996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/pycompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def is_0d_dask_array(x):
return is_duck_dask_array(x) and is_scalar(x)


def to_numpy(data):
def to_numpy(data) -> np.ndarray:
from xarray.core.indexing import ExplicitlyIndexed
from xarray.core.parallelcompat import get_chunked_array_type

Expand Down

0 comments on commit 860c996

Please sign in to comment.