Skip to content

Commit f829d02

Browse files
committed
TYP: use Shape alias in core/groupby/ops.py
1 parent 80c7167 commit f829d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/groupby/ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from pandas._libs import NaT, iNaT, lib
2525
import pandas._libs.groupby as libgroupby
2626
import pandas._libs.reduction as libreduction
27-
from pandas._typing import F, FrameOrSeries, Label
27+
from pandas._typing import F, FrameOrSeries, Label, Shape
2828
from pandas.errors import AbstractMethodError
2929
from pandas.util._decorators import cache_readonly
3030

@@ -116,7 +116,7 @@ def groupings(self) -> List["grouper.Grouping"]:
116116
return self._groupings
117117

118118
@property
119-
def shape(self) -> Tuple[int, ...]:
119+
def shape(self) -> Shape:
120120
return tuple(ping.ngroups for ping in self.groupings)
121121

122122
def __iter__(self):

0 commit comments

Comments
 (0)