Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ Bug Fixes
Documentation
~~~~~~~~~~~~~

- Fix a typo in ``xarray/core/dataarray.py`` (:pull:`11185`).
By `Yaocheng Chen <https://github.com/yaochengchen>`_.

Internal Changes
~~~~~~~~~~~~~~~~

- Fix a typo in ``xarray/backends/api.py`` (:pull:`11180`).
By `Yaocheng Chen <https://github.com/yaochengchen>`_.

- Add stubtest configuration and allowlist for validating type annotations against
runtime behavior. This enables CI integration for type stub validation and helps
prevent type annotation regressions (:issue:`11086`).
Expand Down
8 changes: 4 additions & 4 deletions xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class (a subclass of ``BackendEntrypoint``) can also be used.
in the values of the task graph. See :py:func:`dask.array.from_array`.
chunked_array_type: str, optional
Which chunked array type to coerce this datasets' arrays to.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEnetryPoint` system.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEntryPoint` system.
Experimental API that should not be relied upon.
from_array_kwargs: dict
Additional keyword arguments passed on to the `ChunkManagerEntrypoint.from_array` method used to create
Expand Down Expand Up @@ -773,7 +773,7 @@ class (a subclass of ``BackendEntrypoint``) can also be used.
in the values of the task graph. See :py:func:`dask.array.from_array`.
chunked_array_type: str, optional
Which chunked array type to coerce the underlying data array to.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEnetryPoint` system.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEntryPoint` system.
Experimental API that should not be relied upon.
from_array_kwargs: dict
Additional keyword arguments passed on to the `ChunkManagerEntrypoint.from_array` method used to create
Expand Down Expand Up @@ -1007,7 +1007,7 @@ def open_datatree(
in the values of the task graph. See :py:func:`dask.array.from_array`.
chunked_array_type: str, optional
Which chunked array type to coerce this datasets' arrays to.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEnetryPoint` system.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEntryPoint` system.
Experimental API that should not be relied upon.
from_array_kwargs: dict
Additional keyword arguments passed on to the `ChunkManagerEntrypoint.from_array` method used to create
Expand Down Expand Up @@ -1251,7 +1251,7 @@ def open_groups(
in the values of the task graph. See :py:func:`dask.array.from_array`.
chunked_array_type: str, optional
Which chunked array type to coerce this datasets' arrays to.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEnetryPoint` system.
Defaults to 'dask' if installed, else whatever is registered via the `ChunkManagerEntryPoint` system.
Experimental API that should not be relied upon.
from_array_kwargs: dict
Additional keyword arguments passed on to the `ChunkManagerEntrypoint.from_array` method used to create
Expand Down
4 changes: 2 additions & 2 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ def head(
indexers: Mapping[Any, int] | int | None = None,
**indexers_kwargs: Any,
) -> Self:
"""Return a new DataArray whose data is given by the the first `n`
"""Return a new DataArray whose data is given by the first `n`
values along the specified dimension(s). Default `n` = 5

See Also
Expand Down Expand Up @@ -1777,7 +1777,7 @@ def tail(
indexers: Mapping[Any, int] | int | None = None,
**indexers_kwargs: Any,
) -> Self:
"""Return a new DataArray whose data is given by the the last `n`
"""Return a new DataArray whose data is given by the last `n`
values along the specified dimension(s). Default `n` = 5

See Also
Expand Down