Skip to content

Commit d42c464

Browse files
dhruvak001DHRUVA KUMAR KAUSHAL
andauthored
Fix type annotation for DataVariables to use Hashable instead of Any (#10960)
Co-authored-by: DHRUVA KUMAR KAUSHAL <sanjay@MacBook-Air.local>
1 parent 9335d4e commit d42c464

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xarray/core/dataset_variables.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import typing
22
from collections.abc import Hashable, Iterator, Mapping
3-
from typing import Any
43

54
import numpy as np
65

@@ -13,7 +12,7 @@
1312
from xarray.core.dataset import Dataset
1413

1514

16-
class DataVariables(Mapping[Any, "DataArray"]):
15+
class DataVariables(Mapping[Hashable, "DataArray"]):
1716
__slots__ = ("_dataset",)
1817

1918
def __init__(self, dataset: "Dataset"):

0 commit comments

Comments
 (0)