Skip to content

Commit 2896a80

Browse files
rhkleijnmax-sixty
andauthored
add typing to unary and binary arithmetic operators (#4904)
* add typing to arithmetic ops and refactor arithmetic * minor tweaks * change names of Unions * incorporate work from rhkleijn/gen-ops * changes from code review, whats-new entry * Fix merge artifact * fix one more merge artifact Co-authored-by: Maximilian Roos <[email protected]> Co-authored-by: Maximilian Roos <[email protected]>
1 parent c796eb6 commit 2896a80

17 files changed

+2137
-336
lines changed

doc/whats-new.rst

+5
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ New Features
6464
:py:class:`~core.groupby.DataArrayGroupBy`, inspired by pandas'
6565
:py:meth:`~pandas.core.groupby.GroupBy.get_group`.
6666
By `Deepak Cherian <https://github.com/dcherian>`_.
67+
- Add typing information to unary and binary arithmetic operators operating on
68+
:py:class:`~core.dataset.Dataset`, :py:class:`~core.dataarray.DataArray`,
69+
:py:class:`~core.variable.Variable`, :py:class:`~core.groupby.DatasetGroupBy` or
70+
:py:class:`~core.groupby.DataArrayGroupBy` (:pull:`4904`).
71+
By `Richard Kleijn <https://github.com/rhkleijn>`_ .
6772
- Add a ``combine_attrs`` parameter to :py:func:`open_mfdataset` (:pull:`4971`).
6873
By `Justus Magin <https://github.com/keewis>`_.
6974
- Disable the `cfgrib` backend if the `eccodes` library is not installed (:pull:`5083`). By `Baudouin Raoult <https://github.com/b8raoult>`_.

0 commit comments

Comments
 (0)