diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 7f339e6fc8c..aa72a49cc54 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -41,10 +41,15 @@ Bug Fixes Documentation ~~~~~~~~~~~~~ +- Fix a typo in ``xarray/core/dataarray.py`` (:pull:`11185`). + By `Yaocheng Chen `_. 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 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