Skip to content

Commit 69c7e01

Browse files
max-sixtydcherian
authored andcommitted
Compat and encoding deprecation to 0.14 (#3294)
* push the removal of the compat and encoding arguments from Dataset/DataArray back to 0.14 * require dim argument to concat * Update whats-new.rst
1 parent e38ca0f commit 69c7e01

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/whats-new.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Breaking changes
4848
- Any user code that defines custom subclasses of xarray classes must now explicitly
4949
define ``__slots__`` itself. Subclasses that don't add any attributes must state so
5050
by defining ``__slots__ = ()`` right after the class header.
51-
Omitting ``__slots__`` will now cause a ``FutureWarning`` to be logged, and a hard
52-
crash in a later release.
51+
Omitting ``__slots__`` will now cause a ``FutureWarning`` to be logged, and will raise an
52+
error in a later release.
5353

5454
(:issue:`3250`) by `Guido Imperiale <https://github.com/crusaderky>`_.
5555
- :py:meth:`~Dataset.to_dataset` requires ``name`` to be passed as a kwarg (previously ambiguous

xarray/core/dataarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def __init__(
315315
if encoding is not None:
316316
warnings.warn(
317317
"The `encoding` argument to `DataArray` is deprecated, and . "
318-
"will be removed in 0.13. "
318+
"will be removed in 0.14. "
319319
"Instead, specify the encoding when writing to disk or "
320320
"set the `encoding` attribute directly.",
321321
FutureWarning,

xarray/core/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def __init__(
489489
if compat is not None:
490490
warnings.warn(
491491
"The `compat` argument to Dataset is deprecated and will be "
492-
"removed in 0.13."
492+
"removed in 0.14."
493493
"Instead, use `merge` to control how variables are combined",
494494
FutureWarning,
495495
stacklevel=2,

0 commit comments

Comments
 (0)