Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Feb 23, 2024
1 parent 589e897 commit 12a44fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
GroupIndex = Union[int, slice, list[int]]
T_GroupIndices = list[GroupIndex]
T_FactorizeOut = tuple[
DataArray, T_GroupIndices, Union[pd.Index, "_DummyGroup"], pd.Index, DataArray
DataArray, T_GroupIndices, Union[pd.Index, "_DummyGroup"], pd.Index
]


Expand Down Expand Up @@ -406,6 +406,10 @@ def factorize(self) -> None:


class Grouper(ABC):
@property
def can_squeeze(self) -> bool:
return False

@abstractmethod
def factorize(self, group) -> T_FactorizeOut:
pass
Expand Down

0 comments on commit 12a44fe

Please sign in to comment.