Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent e5de581 commit 9f8248d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/VeckoTheGecko>`_.

Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions xarray/tests/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f8248d

Please sign in to comment.