Skip to content

Commit b8e7f62

Browse files
committed
Fix types
1 parent 05a0fb4 commit b8e7f62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/core/groupby.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
from xarray.core.dataarray import DataArray
5555
from xarray.core.dataset import Dataset
56-
from xarray.core.types import GroupIndex, GroupIndices, GroupKey, Self, T_Chunks
56+
from xarray.core.types import GroupIndex, GroupIndices, GroupKey, T_Chunks
5757
from xarray.core.utils import Frozen
5858
from xarray.groupers import Grouper
5959

@@ -518,7 +518,7 @@ def sizes(self) -> Mapping[Hashable, int]:
518518
self._sizes = self._obj.isel({self._group_dim: index}).sizes
519519
return self._sizes
520520

521-
def shuffle(self, chunks: T_Chunks = None) -> Self:
521+
def shuffle(self, chunks: T_Chunks = None) -> DataArrayGroupBy | DatasetGroupBy:
522522
"""
523523
Sort or "shuffle" the underlying object.
524524
@@ -566,7 +566,7 @@ def shuffle(self, chunks: T_Chunks = None) -> Self:
566566
restore_coord_dims=self._restore_coord_dims,
567567
)
568568

569-
def _shuffle_obj(self, chunks: T_Chunks) -> T_DataWithCoords:
569+
def _shuffle_obj(self, chunks: T_Chunks) -> T_Xarray:
570570
from xarray.core.dataarray import DataArray
571571

572572
(grouper,) = self.groupers

0 commit comments

Comments
 (0)