Skip to content

Commit 6470460

Browse files
authored
Refactor backends to separate writers from readers (#10771)
* move datatree_io to backends directory * split backends/api.py * lint imports * fix bad import mypy noticed * make type available at runtime * whatsnew * lint
1 parent 3bb00ad commit 6470460

File tree

10 files changed

+1034
-1036
lines changed

10 files changed

+1034
-1036
lines changed

doc/whats-new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ Documentation
7777
Internal Changes
7878
~~~~~~~~~~~~~~~~
7979

80+
- Refactor structure of ``backends`` module to separate code for reading data from code for writing data (:pull:`10771`).
81+
By `Tom Nicholas <https://github.com/TomNicholas>`_.
8082
- All test files now have full mypy type checking enabled (``check_untyped_defs = true``),
8183
improving type safety and making the test suite a better reference for type annotations.
8284
(:pull:`10768`)

xarray/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
open_datatree,
1111
open_groups,
1212
open_mfdataset,
13-
save_mfdataset,
1413
)
14+
from xarray.backends.writers import save_mfdataset
1515
from xarray.backends.zarr import open_zarr
1616
from xarray.coding.cftime_offsets import cftime_range, date_range, date_range_like
1717
from xarray.coding.cftimeindex import CFTimeIndex

0 commit comments

Comments
 (0)