From e31d21f24924f72a30338862a707a53ffedcbb41 Mon Sep 17 00:00:00 2001 From: yaochengchen Date: Sat, 21 Feb 2026 15:02:24 +0800 Subject: [PATCH 1/2] Fix a typo in dataarray.py. (#11185) --- doc/whats-new.rst | 2 ++ xarray/core/dataarray.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 7f339e6fc8c..4c26de97a05 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -41,6 +41,8 @@ Bug Fixes Documentation ~~~~~~~~~~~~~ +- Fix a typo in ``xarray/core/dataarray.py`` (:pull:`11185`). + By `Yaocheng Chen `_. Internal Changes ~~~~~~~~~~~~~~~~ diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 5f14e280f34..840b7242d64 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -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 @@ -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 From 089355594490fca3b445cfc3540fd6bb14167c1f Mon Sep 17 00:00:00 2001 From: yaochengchen Date: Sat, 21 Feb 2026 15:03:48 +0800 Subject: [PATCH 2/2] Fix a typo in api.py (#11180) --- doc/whats-new.rst | 3 +++ xarray/backends/api.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4c26de97a05..aa72a49cc54 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -47,6 +47,9 @@ Documentation Internal Changes ~~~~~~~~~~~~~~~~ +- Fix a typo in ``xarray/backends/api.py`` (:pull:`11180`). + By `Yaocheng Chen `_. + - 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`). diff --git a/xarray/backends/api.py b/xarray/backends/api.py index b93c7d517ac..fd992f3e5d8 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -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 @@ -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 @@ -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 @@ -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