@@ -273,8 +273,8 @@ class _LocIndexerFrame(_LocIndexer, Generic[_T]):
273273 | list [HashableT ]
274274 | slice
275275 | _IndexSliceTuple
276- | Callable ,
277- MaskType | Iterable [HashableT ] | IndexType | Callable ,
276+ | Callable [..., Any ] ,
277+ MaskType | Iterable [HashableT ] | IndexType | Callable [..., Any ] ,
278278 ]
279279 ),
280280 ) -> _T : ...
@@ -1268,7 +1268,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
12681268 def combine (
12691269 self ,
12701270 other : DataFrame ,
1271- func : Callable ,
1271+ func : Callable [..., Any ] ,
12721272 fill_value : Scalar | None = None ,
12731273 overwrite : _bool = True ,
12741274 ) -> Self : ...
@@ -1278,7 +1278,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
12781278 other : DataFrame | Series ,
12791279 join : UpdateJoin = "left" ,
12801280 overwrite : _bool = True ,
1281- filter_func : Callable | None = ...,
1281+ filter_func : Callable [..., Any ] | None = ...,
12821282 errors : IgnoreRaise = "ignore" ,
12831283 ) -> None : ...
12841284 @overload
@@ -1516,21 +1516,21 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
15161516 @overload
15171517 def aggregate ( # pyright: ignore[reportOverlappingOverload]
15181518 self ,
1519- func : AggFuncTypeBase | AggFuncTypeDictSeries ,
1519+ func : AggFuncTypeBase [...] | AggFuncTypeDictSeries [ Any , ...] ,
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 [ Any , ...] | None = ...,
15271527 axis : Axis = 0 ,
15281528 ** kwargs : Any ,
15291529 ) -> Self : ...
15301530 agg = aggregate
15311531 def transform (
15321532 self ,
1533- func : AggFuncTypeFrame ,
1533+ func : AggFuncTypeFrame [..., Any ] ,
15341534 axis : Axis = 0 ,
15351535 * args : Any ,
15361536 ** kwargs : Any ,
@@ -1684,7 +1684,10 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
16841684
16851685 # Add spacing between apply() overloads and remaining annotations
16861686 def map (
1687- self , func : Callable , na_action : Literal ["ignore" ] | None = None , ** kwargs : Any
1687+ self ,
1688+ func : Callable [..., Any ],
1689+ na_action : Literal ["ignore" ] | None = None ,
1690+ ** kwargs : Any ,
16881691 ) -> Self : ...
16891692 def join (
16901693 self ,
@@ -2332,7 +2335,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
23322335 | Callable [[DataFrame ], DataFrame ]
23332336 | Callable [[Any ], _bool ]
23342337 ),
2335- other : Scalar | Series | DataFrame | Callable | NAType | None = ...,
2338+ other : Scalar | Series | DataFrame | Callable [..., Any ] | NAType | None = ...,
23362339 * ,
23372340 inplace : Literal [True ],
23382341 axis : Axis | None = ...,
@@ -2349,7 +2352,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
23492352 | Callable [[DataFrame ], DataFrame ]
23502353 | Callable [[Any ], _bool ]
23512354 ),
2352- other : Scalar | Series | DataFrame | Callable | NAType | None = ...,
2355+ other : Scalar | Series | DataFrame | Callable [..., Any ] | NAType | None = ...,
23532356 * ,
23542357 inplace : Literal [False ] = False ,
23552358 axis : Axis | None = ...,
@@ -2510,8 +2513,12 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
25102513 def rename_axis (
25112514 self ,
25122515 * ,
2513- index : _str | Sequence [_str ] | dict [_str | int , _str ] | Callable | None = ...,
2514- columns : _str | Sequence [_str ] | dict [_str | int , _str ] | Callable | None = ...,
2516+ index : (
2517+ _str | Sequence [_str ] | dict [_str | int , _str ] | Callable [..., Any ] | None
2518+ ) = ...,
2519+ columns : (
2520+ _str | Sequence [_str ] | dict [_str | int , _str ] | Callable [..., Any ] | None
2521+ ) = ...,
25152522 copy : _bool = ...,
25162523 inplace : Literal [True ],
25172524 ) -> None : ...
@@ -2520,8 +2527,12 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
25202527 def rename_axis (
25212528 self ,
25222529 * ,
2523- index : _str | Sequence [_str ] | dict [_str | int , _str ] | Callable | None = ...,
2524- columns : _str | Sequence [_str ] | dict [_str | int , _str ] | Callable | None = ...,
2530+ index : (
2531+ _str | Sequence [_str ] | dict [_str | int , _str ] | Callable [..., Any ] | None
2532+ ) = ...,
2533+ columns : (
2534+ _str | Sequence [_str ] | dict [_str | int , _str ] | Callable [..., Any ] | None
2535+ ) = ...,
25252536 copy : _bool = ...,
25262537 inplace : Literal [False ] = False ,
25272538 ) -> Self : ...
0 commit comments