We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9946ec commit e2b6f34Copy full SHA for e2b6f34
xarray/core/dataset.py
@@ -132,6 +132,7 @@
132
DatetimeLike,
133
DatetimeUnitOptions,
134
Dims,
135
+ DsCompatible,
136
ErrorOptions,
137
ErrorOptionsWithWarn,
138
InterpOptions,
@@ -696,6 +697,11 @@ def __init__(
696
697
self._dims = dims
698
self._indexes = indexes
699
700
+ # TODO: dirty workaround for mypy 1.5 error with inherited DatasetOpsMixin vs. Mapping
701
+ # related to https://github.com/python/mypy/issues/9319?
702
+ def __eq__(self: T_Dataset, other: DsCompatible) -> T_Dataset: # type: ignore[override]
703
+ return super().__eq__(other)
704
+
705
@classmethod
706
def load_store(cls: type[T_Dataset], store, decoder=None) -> T_Dataset:
707
"""Create a new dataset from the contents of a backends.*DataStore
0 commit comments