Skip to content

Commit 2965bb2

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

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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_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)