Skip to content

Commit 1d6e8e5

Browse files
committed
Fix type checking consistency
1 parent 40d92cb commit 1d6e8e5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/qcodes/dataset/data_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def to_xarray_dataarray_dict(
961961
start: int | None = None,
962962
end: int | None = None,
963963
use_multi_index: Literal["auto", "always", "never"] = "auto",
964-
) -> dict[str, xr.DataArray]:
964+
) -> dict[str, xr.Dataset]:
965965
"""
966966
Returns the values stored in the :class:`.DataSet` for the specified parameters
967967
and their dependencies as a dict of :py:class:`xr.DataArray` s

src/qcodes/dataset/data_set_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def to_pandas_dataframe(self) -> pd.DataFrame:
187187

188188
def to_xarray_dataarray_dict(
189189
self, *, use_multi_index: Literal["auto", "always", "never"] = "auto"
190-
) -> dict[str, xr.DataArray]:
190+
) -> dict[str, xr.Dataset]:
191191
"""
192192
Returns the values stored in the :class:`.dataset.data_set.DataSet` as a dict of
193193
:py:class:`xr.DataArray` s

src/qcodes/dataset/data_set_in_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def to_xarray_dataarray_dict(
848848
start: int | None = None,
849849
end: int | None = None,
850850
use_multi_index: Literal["auto", "always", "never"] = "auto",
851-
) -> dict[str, xr.DataArray]:
851+
) -> dict[str, xr.Dataset]:
852852
self._warn_if_set(*params, start=start, end=end)
853853
return self.cache.to_xarray_dataarray_dict()
854854

src/qcodes/dataset/data_set_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def to_xarray_dataarray_dict(
231231
start: int | None = None,
232232
end: int | None = None,
233233
use_multi_index: Literal["auto", "always", "never"] = "auto",
234-
) -> dict[str, xr.DataArray]: ...
234+
) -> dict[str, xr.Dataset]: ...
235235

236236
def to_xarray_dataset(
237237
self,

0 commit comments

Comments
 (0)