Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{full,zeros,ones}_like typing #6611

Merged
merged 9 commits into from
May 16, 2022
Prev Previous commit
add link to numpy.typing.DTypeLike
  • Loading branch information
headtr1ck committed May 16, 2022
commit da5bd9b5b751e999f7c16ed40137a3cc8f662e51
3 changes: 2 additions & 1 deletion xarray/core/npcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
from numpy.typing._dtype_like import _DTypeLikeNested, _ShapeLike, _SupportsDType

# Xarray requires a Mapping[Hashable, dtype] in many places which
# conflics with numpys own DTypeLik (with dtypes for fields).
# conflics with numpys own DTypeLike (with dtypes for fields).
# https://numpy.org/devdocs/reference/typing.html#numpy.typing.DTypeLike
# This is a copy of this DTypeLike that allows only non-Mapping dtypes.
headtr1ck marked this conversation as resolved.
Show resolved Hide resolved
DTypeLikeSave = Union[
np.dtype,
Expand Down