From 888f757a5d537bd29576241378ac2646bd449d14 Mon Sep 17 00:00:00 2001 From: Philip Chmielowiec Date: Mon, 14 Apr 2025 12:07:36 -0500 Subject: [PATCH 1/2] fix missing colon in sphinx roles --- doc/whats-new.rst | 2 +- xarray/core/dataarray.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 031b8cf23e1..772eb4fcb46 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -722,7 +722,7 @@ Bug fixes - Promote floating-point numeric datetimes before decoding (:issue:`9179`, :pull:`9182`). By `Justus Magin `_. - Address regression introduced in :pull:`9002` that prevented objects returned - by py:meth:`DataArray.convert_calendar` to be indexed by a time index in + by :py:meth:`DataArray.convert_calendar` to be indexed by a time index in certain circumstances (:issue:`9138`, :pull:`9192`). By `Mark Harfouche `_ and `Spencer Clark `_. - Fix static typing of tolerance arguments by allowing ``str`` type (:issue:`8892`, :pull:`9194`). diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index 50192e4f070..34ecc42127b 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -353,7 +353,7 @@ class DataArray( Attributes to assign to the new instance. By default, an empty attribute dictionary is initialized. (see FAQ, :ref:`approach to metadata`) - indexes : py:class:`~xarray.Indexes` or dict-like, optional + indexes : :py:class:`~xarray.Indexes` or dict-like, optional For internal use only. For passing indexes objects to the new DataArray, use the ``coords`` argument instead with a :py:class:`~xarray.Coordinate` object (both coordinate variables From eb2f107574ddcfb1e37a7e9490cae5df94910a31 Mon Sep 17 00:00:00 2001 From: Philip Chmielowiec Date: Mon, 14 Apr 2025 12:15:22 -0500 Subject: [PATCH 2/2] add space after comma for two broken roles --- doc/whats-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 772eb4fcb46..21eaffcdede 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -1696,7 +1696,7 @@ Documentation - Added page on the internal design of xarray objects. (:pull:`7991`) By `Tom Nicholas `_. - Added examples to docstrings of :py:meth:`Dataset.assign_attrs`, :py:meth:`Dataset.broadcast_equals`, - :py:meth:`Dataset.equals`, :py:meth:`Dataset.identical`, :py:meth:`Dataset.expand_dims`,:py:meth:`Dataset.drop_vars` + :py:meth:`Dataset.equals`, :py:meth:`Dataset.identical`, :py:meth:`Dataset.expand_dims`, :py:meth:`Dataset.drop_vars` (:issue:`6793`, :pull:`7937`) By `Harshitha `_. - Add docstrings for the :py:class:`Index` base class and add some documentation on how to create custom, Xarray-compatible indexes (:pull:`6975`) @@ -1741,7 +1741,7 @@ Documentation ~~~~~~~~~~~~~ - Added examples to docstrings of :py:meth:`Dataset.assign_attrs`, :py:meth:`Dataset.broadcast_equals`, - :py:meth:`Dataset.equals`, :py:meth:`Dataset.identical`, :py:meth:`Dataset.expand_dims`,:py:meth:`Dataset.drop_vars` + :py:meth:`Dataset.equals`, :py:meth:`Dataset.identical`, :py:meth:`Dataset.expand_dims`, :py:meth:`Dataset.drop_vars` (:issue:`6793`, :pull:`7937`) By `Harshitha `_. - Added page on wrapping chunked numpy-like arrays as alternatives to dask arrays. (:pull:`7951`) By `Tom Nicholas `_.