@@ -12,9 +12,7 @@ from re import Pattern
1212from typing import (
1313 Any ,
1414 ClassVar ,
15- Generic ,
1615 Literal ,
17- TypeVar ,
1816 overload ,
1917)
2018
@@ -27,10 +25,7 @@ from pandas import (
2725)
2826from pandas .core .arraylike import OpsMixin
2927from pandas .core .generic import NDFrame
30- from pandas .core .groupby .generic import (
31- DataFrameGroupBy ,
32- SeriesGroupBy ,
33- )
28+ from pandas .core .groupby .generic import DataFrameGroupBy
3429from pandas .core .groupby .grouper import Grouper
3530from pandas .core .indexers import BaseIndexer
3631from pandas .core .indexes .base import Index
@@ -79,7 +74,6 @@ from pandas._typing import (
7974 Axis ,
8075 AxisColumn ,
8176 AxisIndex ,
82- ByT ,
8377 CalculationMethod ,
8478 ColspaceArgType ,
8579 CompressionOptions ,
@@ -235,11 +229,6 @@ class _LocIndexerFrame(_LocIndexer):
235229 value : Scalar | NAType | NaTType | ArrayLike | Series | list | None ,
236230 ) -> None : ...
237231
238- _TT = TypeVar ("TT" , bound = Literal [True , False ])
239-
240- class DataFrameGroupByGen (DataFrameGroupBy [ByT ], Generic [ByT , _TT ]): ...
241- class SeriesGroupByGen (SeriesGroupBy , Generic [_TT , ByT ]): ...
242-
243232class DataFrame (NDFrame , OpsMixin ):
244233 __hash__ : ClassVar [None ] # type: ignore[assignment]
245234
@@ -1073,7 +1062,7 @@ class DataFrame(NDFrame, OpsMixin):
10731062 group_keys : _bool = ...,
10741063 observed : _bool | NoDefault = ...,
10751064 dropna : _bool = ...,
1076- ) -> DataFrameGroupByGen [Scalar , Literal [True ]]: ...
1065+ ) -> DataFrameGroupBy [Scalar , Literal [True ]]: ...
10771066 @overload
10781067 def groupby (
10791068 self ,
@@ -1085,7 +1074,7 @@ class DataFrame(NDFrame, OpsMixin):
10851074 group_keys : _bool = ...,
10861075 observed : _bool | NoDefault = ...,
10871076 dropna : _bool = ...,
1088- ) -> DataFrameGroupByGen [Scalar , Literal [False ]]: ...
1077+ ) -> DataFrameGroupBy [Scalar , Literal [False ]]: ...
10891078 @overload
10901079 def groupby (
10911080 self ,
@@ -1097,7 +1086,7 @@ class DataFrame(NDFrame, OpsMixin):
10971086 group_keys : _bool = ...,
10981087 observed : _bool | NoDefault = ...,
10991088 dropna : _bool = ...,
1100- ) -> DataFrameGroupBy [Timestamp ]: ...
1089+ ) -> DataFrameGroupBy [Timestamp , bool ]: ...
11011090 @overload
11021091 def groupby (
11031092 self ,
@@ -1109,7 +1098,7 @@ class DataFrame(NDFrame, OpsMixin):
11091098 group_keys : _bool = ...,
11101099 observed : _bool | NoDefault = ...,
11111100 dropna : _bool = ...,
1112- ) -> DataFrameGroupBy [Timedelta ]: ...
1101+ ) -> DataFrameGroupBy [Timedelta , bool ]: ...
11131102 @overload
11141103 def groupby (
11151104 self ,
@@ -1121,7 +1110,7 @@ class DataFrame(NDFrame, OpsMixin):
11211110 group_keys : _bool = ...,
11221111 observed : _bool | NoDefault = ...,
11231112 dropna : _bool = ...,
1124- ) -> DataFrameGroupBy [Period ]: ...
1113+ ) -> DataFrameGroupBy [Period , bool ]: ...
11251114 @overload
11261115 def groupby (
11271116 self ,
@@ -1133,7 +1122,7 @@ class DataFrame(NDFrame, OpsMixin):
11331122 group_keys : _bool = ...,
11341123 observed : _bool | NoDefault = ...,
11351124 dropna : _bool = ...,
1136- ) -> DataFrameGroupBy [IntervalT ]: ...
1125+ ) -> DataFrameGroupBy [IntervalT , bool ]: ...
11371126 @overload
11381127 def groupby (
11391128 self ,
@@ -1145,7 +1134,7 @@ class DataFrame(NDFrame, OpsMixin):
11451134 group_keys : _bool = ...,
11461135 observed : _bool | NoDefault = ...,
11471136 dropna : _bool = ...,
1148- ) -> DataFrameGroupBy [tuple ]: ...
1137+ ) -> DataFrameGroupBy [tuple , bool ]: ...
11491138 @overload
11501139 def groupby (
11511140 self ,
@@ -1157,7 +1146,7 @@ class DataFrame(NDFrame, OpsMixin):
11571146 group_keys : _bool = ...,
11581147 observed : _bool | NoDefault = ...,
11591148 dropna : _bool = ...,
1160- ) -> DataFrameGroupBy [SeriesByT ]: ...
1149+ ) -> DataFrameGroupBy [SeriesByT , bool ]: ...
11611150 @overload
11621151 def groupby (
11631152 self ,
@@ -1169,7 +1158,7 @@ class DataFrame(NDFrame, OpsMixin):
11691158 group_keys : _bool = ...,
11701159 observed : _bool | NoDefault = ...,
11711160 dropna : _bool = ...,
1172- ) -> DataFrameGroupBy [Any ]: ...
1161+ ) -> DataFrameGroupBy [Any , bool ]: ...
11731162 def pivot (
11741163 self ,
11751164 * ,
0 commit comments