Skip to content

Commit 883f239

Browse files
committed
remove the deprecated return value of Dataset.update
1 parent 28362b5 commit 883f239

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

xarray/core/dataset.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4157,7 +4157,7 @@ def unstack(
41574157
result = result._unstack_once(dim, fill_value)
41584158
return result
41594159

4160-
def update(self, other: "CoercibleMapping") -> "Dataset":
4160+
def update(self, other: "CoercibleMapping") -> None:
41614161
"""Update this dataset's variables with those from another dataset.
41624162
41634163
Just like :py:meth:`dict.update` this is a in-place operation.
@@ -4173,14 +4173,6 @@ def update(self, other: "CoercibleMapping") -> "Dataset":
41734173
- mapping {var name: (dimension name, array-like)}
41744174
- mapping {var name: (tuple of dimension names, array-like)}
41754175
4176-
Returns
4177-
-------
4178-
updated : Dataset
4179-
Updated dataset. Note that since the update is in-place this is the input
4180-
dataset.
4181-
4182-
It is deprecated since version 0.17 and scheduled to be removed in 0.19.
4183-
41844176
Raises
41854177
------
41864178
ValueError
@@ -4192,7 +4184,7 @@ def update(self, other: "CoercibleMapping") -> "Dataset":
41924184
Dataset.assign
41934185
"""
41944186
merge_result = dataset_update_method(self, other)
4195-
return self._replace(inplace=True, **merge_result._asdict())
4187+
self._replace(inplace=True, **merge_result._asdict())
41964188

41974189
def merge(
41984190
self,

0 commit comments

Comments
 (0)