diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 8f2c2da47b5..227b9b3b389 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,7 +21,7 @@ v.2024.11.1 (unreleased) New Features ~~~~~~~~~~~~ -- Add :py:func:`~xarray.show_backends` alias for :py:func:`~xarray.backends.list_engines` (:issue:`6577`, :pull:`xxx`). +- Add :py:func:`~xarray.show_backends` alias for :py:func:`~xarray.backends.list_engines` (:issue:`6577`, :pull:`xxx`). By `Nick Hodgskin `_. Breaking changes diff --git a/xarray/__init__.py b/xarray/__init__.py index 9e3ab68c59f..a0abffc2222 100644 --- a/xarray/__init__.py +++ b/xarray/__init__.py @@ -11,6 +11,7 @@ open_mfdataset, save_mfdataset, ) +from xarray.backends.plugins import show_backends from xarray.backends.zarr import open_zarr from xarray.coding.cftime_offsets import cftime_range, date_range, date_range_like from xarray.coding.cftimeindex import CFTimeIndex @@ -51,7 +52,6 @@ TreeIsomorphismError, group_subtrees, ) -from xarray.backends.plugins import show_backends from xarray.core.variable import IndexVariable, Variable, as_variable from xarray.namedarray.core import NamedArray from xarray.util.print_versions import show_versions diff --git a/xarray/tests/test_plugins.py b/xarray/tests/test_plugins.py index b5492c64c72..4f9b07725e6 100644 --- a/xarray/tests/test_plugins.py +++ b/xarray/tests/test_plugins.py @@ -275,6 +275,7 @@ def test_list_engines() -> None: assert ("zarr" in engines) == has_zarr assert "store" in engines + def test_show_engines() -> None: from xarray import show_backends from xarray.backends import list_engines