Skip to content

Commit 6f9e33e

Browse files
authored
Fix typing of to_netcdf encoding (#7279)
1 parent 4dddb0b commit 6f9e33e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xarray/core/dataset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ def to_netcdf(
17671767
format: T_NetcdfTypes | None = None,
17681768
group: str | None = None,
17691769
engine: T_NetcdfEngine | None = None,
1770-
encoding: Mapping[Hashable, Mapping[str, Any]] | None = None,
1770+
encoding: Mapping[Any, Mapping[str, Any]] | None = None,
17711771
unlimited_dims: Iterable[Hashable] | None = None,
17721772
compute: bool = True,
17731773
invalid_netcdf: bool = False,
@@ -1783,7 +1783,7 @@ def to_netcdf(
17831783
format: T_NetcdfTypes | None = None,
17841784
group: str | None = None,
17851785
engine: T_NetcdfEngine | None = None,
1786-
encoding: Mapping[Hashable, Mapping[str, Any]] | None = None,
1786+
encoding: Mapping[Any, Mapping[str, Any]] | None = None,
17871787
unlimited_dims: Iterable[Hashable] | None = None,
17881788
compute: Literal[True] = True,
17891789
invalid_netcdf: bool = False,
@@ -1799,7 +1799,7 @@ def to_netcdf(
17991799
format: T_NetcdfTypes | None = None,
18001800
group: str | None = None,
18011801
engine: T_NetcdfEngine | None = None,
1802-
encoding: Mapping[Hashable, Mapping[str, Any]] | None = None,
1802+
encoding: Mapping[Any, Mapping[str, Any]] | None = None,
18031803
unlimited_dims: Iterable[Hashable] | None = None,
18041804
*,
18051805
compute: Literal[False],
@@ -1814,7 +1814,7 @@ def to_netcdf(
18141814
format: T_NetcdfTypes | None = None,
18151815
group: str | None = None,
18161816
engine: T_NetcdfEngine | None = None,
1817-
encoding: Mapping[Hashable, Mapping[str, Any]] | None = None,
1817+
encoding: Mapping[Any, Mapping[str, Any]] | None = None,
18181818
unlimited_dims: Iterable[Hashable] | None = None,
18191819
compute: bool = True,
18201820
invalid_netcdf: bool = False,

0 commit comments

Comments
 (0)