Skip to content

Commit b757b28

Browse files
committed
agg
1 parent 0a7a65f commit b757b28

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,18 +1516,18 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
15161516
@overload
15171517
def aggregate( # pyright: ignore[reportOverlappingOverload]
15181518
self,
1519-
func: AggFuncTypeBase | AggFuncTypeDictSeries,
1519+
func: AggFuncTypeBase | AggFuncTypeDictSeries[Hashable],
15201520
axis: Axis = 0,
15211521
**kwargs: Any,
15221522
) -> Series: ...
15231523
@overload
15241524
def aggregate(
15251525
self,
1526-
func: list[AggFuncTypeBase] | AggFuncTypeDictFrame | None = ...,
1526+
func: list[AggFuncTypeBase] | AggFuncTypeDictFrame[Hashable] | None = ...,
15271527
axis: Axis = 0,
15281528
**kwargs: Any,
15291529
) -> Self: ...
1530-
agg = aggregate # pyright: ignore[reportUnknownVariableType]
1530+
agg = aggregate
15311531
def transform(
15321532
self,
15331533
func: AggFuncTypeFrame,

pandas-stubs/core/groupby/generic.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
261261
@overload
262262
def aggregate(
263263
self,
264-
func: AggFuncTypeFrame | None = ...,
264+
func: AggFuncTypeFrame[Hashable] | None = ...,
265265
*args: Any,
266266
engine: WindowingEngine = ...,
267267
engine_kwargs: WindowingEngineKwargs = ...,
@@ -270,11 +270,11 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
270270
@overload
271271
def aggregate(
272272
self,
273-
func: AggFuncTypeFrame | None = None,
273+
func: AggFuncTypeFrame[Hashable] | None = None,
274274
/,
275275
**kwargs: Any,
276276
) -> DataFrame: ...
277-
agg = aggregate # pyright: ignore[reportUnknownVariableType]
277+
agg = aggregate
278278
@overload
279279
def transform(
280280
self,

pandas-stubs/core/series.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,12 +1142,12 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
11421142
@overload
11431143
def aggregate(
11441144
self,
1145-
func: AggFuncTypeSeriesToFrame = ...,
1145+
func: AggFuncTypeSeriesToFrame[Hashable] = ...,
11461146
axis: AxisIndex = ...,
11471147
*args: Any,
11481148
**kwargs: Any,
11491149
) -> Series: ...
1150-
agg = aggregate # pyright: ignore[reportUnknownVariableType]
1150+
agg = aggregate
11511151
@overload
11521152
def transform(
11531153
self,

pandas-stubs/core/window/rolling.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections.abc import (
22
Callable,
3+
Hashable,
34
Iterator,
45
)
56
import datetime as dt
@@ -52,18 +53,18 @@ class BaseWindow(SelectionMixin[NDFrameT]):
5253
@overload
5354
def aggregate(
5455
self: BaseWindow[Series],
55-
func: AggFuncTypeSeriesToFrame,
56+
func: AggFuncTypeSeriesToFrame[Hashable],
5657
*args: Any,
5758
**kwargs: Any,
5859
) -> DataFrame: ...
5960
@overload
6061
def aggregate(
6162
self: BaseWindow[DataFrame],
62-
func: AggFuncTypeFrame,
63+
func: AggFuncTypeFrame[Hashable],
6364
*args: Any,
6465
**kwargs: Any,
6566
) -> DataFrame: ...
66-
agg = aggregate # pyright: ignore[reportUnknownVariableType]
67+
agg = aggregate
6768

6869
class BaseWindowGroupby(BaseWindow[NDFrameT]): ...
6970

0 commit comments

Comments
 (0)