Skip to content

Commit 1376ed9

Browse files
committed
Hashable->Any in Dict
1 parent c5635a4 commit 1376ed9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xarray/core/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ def persist(self, **kwargs) -> "Dataset":
10691069
@classmethod
10701070
def _construct_direct(
10711071
cls,
1072-
variables: CopyableMutableMapping[Hashable, Variable],
1072+
variables: CopyableMutableMapping[Any, Variable],
10731073
coord_names: Set[Hashable],
10741074
dims: Dict[Hashable, int] = None,
10751075
attrs: Dict[Hashable, Any] = None,
@@ -1094,7 +1094,7 @@ def _construct_direct(
10941094

10951095
def _replace(
10961096
self,
1097-
variables: CopyableMutableMapping[Hashable, Variable] = None,
1097+
variables: CopyableMutableMapping[Any, Variable] = None,
10981098
coord_names: Set[Hashable] = None,
10991099
dims: Dict[Any, int] = None,
11001100
attrs: Union[Dict[Hashable, Any], None, Default] = _default,

xarray/tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6686,7 +6686,7 @@ def test_instantiate(self):
66866686
def test_construct_direct_dataset(self):
66876687
var1 = Variable(data=0, dims=())
66886688
var2 = Variable(data=1, dims=())
6689-
cm: CustomMirroredMapping[Hashable, Variable] = CustomMirroredMapping(
6689+
cm: CustomMirroredMapping[Any, Variable] = CustomMirroredMapping(
66906690
{"a": var1, "b": var2}
66916691
)
66926692

0 commit comments

Comments
 (0)