Skip to content

Commit c1dab61

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 85f0de1 commit c1dab61

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

xarray/backends/api.py

+18-9
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,8 @@ def to_netcdf(
11031103
*,
11041104
multifile: Literal[True],
11051105
invalid_netcdf: bool = False,
1106-
) -> tuple[ArrayWriter, AbstractDataStore]: ...
1106+
) -> tuple[ArrayWriter, AbstractDataStore]:
1107+
...
11071108

11081109

11091110
# path=None writes to bytes
@@ -1120,7 +1121,8 @@ def to_netcdf(
11201121
compute: bool = True,
11211122
multifile: Literal[False] = False,
11221123
invalid_netcdf: bool = False,
1123-
) -> bytes: ...
1124+
) -> bytes:
1125+
...
11241126

11251127

11261128
# compute=False returns dask.Delayed
@@ -1138,7 +1140,8 @@ def to_netcdf(
11381140
compute: Literal[False],
11391141
multifile: Literal[False] = False,
11401142
invalid_netcdf: bool = False,
1141-
) -> Delayed: ...
1143+
) -> Delayed:
1144+
...
11421145

11431146

11441147
# default return None
@@ -1155,7 +1158,8 @@ def to_netcdf(
11551158
compute: Literal[True] = True,
11561159
multifile: Literal[False] = False,
11571160
invalid_netcdf: bool = False,
1158-
) -> None: ...
1161+
) -> None:
1162+
...
11591163

11601164

11611165
# if compute cannot be evaluated at type check time
@@ -1173,7 +1177,8 @@ def to_netcdf(
11731177
compute: bool = False,
11741178
multifile: Literal[False] = False,
11751179
invalid_netcdf: bool = False,
1176-
) -> Delayed | None: ...
1180+
) -> Delayed | None:
1181+
...
11771182

11781183

11791184
# if multifile cannot be evaluated at type check time
@@ -1191,7 +1196,8 @@ def to_netcdf(
11911196
compute: bool = False,
11921197
multifile: bool = False,
11931198
invalid_netcdf: bool = False,
1194-
) -> tuple[ArrayWriter, AbstractDataStore] | Delayed | None: ...
1199+
) -> tuple[ArrayWriter, AbstractDataStore] | Delayed | None:
1200+
...
11951201

11961202

11971203
# Any
@@ -1208,7 +1214,8 @@ def to_netcdf(
12081214
compute: bool = False,
12091215
multifile: bool = False,
12101216
invalid_netcdf: bool = False,
1211-
) -> tuple[ArrayWriter, AbstractDataStore] | bytes | Delayed | None: ...
1217+
) -> tuple[ArrayWriter, AbstractDataStore] | bytes | Delayed | None:
1218+
...
12121219

12131220

12141221
def to_netcdf(
@@ -1642,7 +1649,8 @@ def to_zarr(
16421649
zarr_version: int | None = None,
16431650
write_empty_chunks: bool | None = None,
16441651
chunkmanager_store_kwargs: dict[str, Any] | None = None,
1645-
) -> backends.ZarrStore: ...
1652+
) -> backends.ZarrStore:
1653+
...
16461654

16471655

16481656
# compute=False returns dask.Delayed
@@ -1665,7 +1673,8 @@ def to_zarr(
16651673
zarr_version: int | None = None,
16661674
write_empty_chunks: bool | None = None,
16671675
chunkmanager_store_kwargs: dict[str, Any] | None = None,
1668-
) -> Delayed: ...
1676+
) -> Delayed:
1677+
...
16691678

16701679

16711680
def to_zarr(

xarray/core/options.py

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class set_options:
254254
>>> ds = xr.Dataset({"x": np.arange(1000)})
255255
>>> with xr.set_options(display_width=40):
256256
... print(ds)
257+
...
257258
<xarray.Dataset> Size: 8kB
258259
Dimensions: (x: 1000)
259260
Coordinates:

0 commit comments

Comments
 (0)