From b004af5174a4b0e32519df792a4f625d5548a9f0 Mon Sep 17 00:00:00 2001 From: Tom Nicholas Date: Sun, 14 Apr 2024 07:14:42 -0400 Subject: [PATCH] Correct save_mfdataset docstring (#8934) * correct docstring * get type hint right --- xarray/backends/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index 2f73c38341b..2589ff196f9 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -1416,8 +1416,6 @@ def save_mfdataset( these locations will be overwritten. format : {"NETCDF4", "NETCDF4_CLASSIC", "NETCDF3_64BIT", \ "NETCDF3_CLASSIC"}, optional - **kwargs : additional arguments are passed along to ``to_netcdf`` - File format for the resulting netCDF file: * NETCDF4: Data is stored in an HDF5 file, using netCDF4 API @@ -1449,10 +1447,11 @@ def save_mfdataset( compute : bool If true compute immediately, otherwise return a ``dask.delayed.Delayed`` object that can be computed later. + **kwargs : dict, optional + Additional arguments are passed along to ``to_netcdf``. Examples -------- - Save a dataset into one netCDF per year of data: >>> ds = xr.Dataset(