@@ -58,7 +58,7 @@ from pandas.core.indexing import (
5858 _LocIndexer ,
5959)
6060from pandas .core .reshape .pivot import (
61- _PivotAggFunc ,
61+ _PivotAggFuncTypes ,
6262 _PivotTableColumnsTypes ,
6363 _PivotTableIndexTypes ,
6464 _PivotTableValuesTypes ,
@@ -178,7 +178,7 @@ from pandas.plotting import PlotAccessor
178178from pandas .plotting ._core import _BoxPlotT
179179
180180_T_MUTABLE_MAPPING_co = TypeVar (
181- "_T_MUTABLE_MAPPING_co" , bound = MutableMapping , covariant = True
181+ "_T_MUTABLE_MAPPING_co" , bound = MutableMapping [ Any , Any ] , covariant = True
182182)
183183
184184_iLocSetItemKey : TypeAlias = (
@@ -1279,7 +1279,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
12791279 dropna : _bool = ...,
12801280 ) -> DataFrameGroupBy [Period , Literal [False ]]: ...
12811281 @overload
1282- def groupby ( # pyright: ignore reportOverlappingOverload
1282+ def groupby (
12831283 self ,
12841284 by : IntervalIndex [IntervalT ],
12851285 level : IndexLabel | None = ...,
@@ -1292,7 +1292,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
12921292 @overload
12931293 def groupby (
12941294 self ,
1295- by : IntervalIndex [ IntervalT ] ,
1295+ by : IntervalIndex ,
12961296 level : IndexLabel | None = ...,
12971297 as_index : Literal [False ] = False ,
12981298 sort : _bool = ...,
@@ -1378,9 +1378,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
13781378 values : _PivotTableValuesTypes = None ,
13791379 index : _PivotTableIndexTypes = None ,
13801380 columns : _PivotTableColumnsTypes = None ,
1381- aggfunc : (
1382- _PivotAggFunc | Sequence [_PivotAggFunc ] | Mapping [Hashable , _PivotAggFunc ]
1383- ) = "mean" ,
1381+ aggfunc : _PivotAggFuncTypes [Scalar ] = "mean" ,
13841382 fill_value : Scalar | None = None ,
13851383 margins : _bool = False ,
13861384 dropna : _bool = True ,
0 commit comments