Skip to content

Commit cdb7b9a

Browse files
Add any to args, kwargs and Mapping overloads
1 parent 2dd5189 commit cdb7b9a

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,8 @@ class DataFrame(NDFrame, OpsMixin):
12541254
axis: AxisIndex = ...,
12551255
raw: _bool = ...,
12561256
result_type: None = ...,
1257-
args=...,
1258-
**kwargs,
1257+
args: Any = ...,
1258+
**kwargs: Any,
12591259
) -> DataFrame: ...
12601260
@overload
12611261
def apply(
@@ -1264,8 +1264,8 @@ class DataFrame(NDFrame, OpsMixin):
12641264
axis: AxisIndex = ...,
12651265
raw: _bool = ...,
12661266
result_type: None = ...,
1267-
args=...,
1268-
**kwargs,
1267+
args: Any = ...,
1268+
**kwargs: Any,
12691269
) -> Series[S1]: ...
12701270
# Since non-scalar type T is not supported in Series[T],
12711271
# we separate this overload from the above one
@@ -1276,9 +1276,9 @@ class DataFrame(NDFrame, OpsMixin):
12761276
axis: AxisIndex = ...,
12771277
raw: _bool = ...,
12781278
result_type: None = ...,
1279-
args=...,
1280-
**kwargs,
1281-
) -> Series: ...
1279+
args: Any = ...,
1280+
**kwargs: Any,
1281+
) -> Series[Any]: ...
12821282

12831283
# apply() overloads with keyword result_type, and axis does not matter
12841284
@overload
@@ -1287,33 +1287,33 @@ class DataFrame(NDFrame, OpsMixin):
12871287
f: Callable[..., S1],
12881288
axis: Axis = ...,
12891289
raw: _bool = ...,
1290-
args=...,
1290+
args: Any = ...,
12911291
*,
12921292
result_type: Literal["expand", "reduce"],
1293-
**kwargs,
1293+
**kwargs: Any,
12941294
) -> Series[S1]: ...
12951295
@overload
12961296
def apply(
12971297
self,
12981298
f: Callable[..., ListLikeExceptSeriesAndStr | Series[Any] | Mapping[Any, Any]],
12991299
axis: Axis = ...,
13001300
raw: _bool = ...,
1301-
args=...,
1301+
args: Any = ...,
13021302
*,
13031303
result_type: Literal["expand"],
1304-
**kwargs,
1304+
**kwargs: Any,
13051305
) -> DataFrame: ...
13061306
@overload
13071307
def apply(
13081308
self,
1309-
f: Callable[..., ListLikeExceptSeriesAndStr | Mapping],
1309+
f: Callable[..., ListLikeExceptSeriesAndStr | Mapping[Any, Any]],
13101310
axis: Axis = ...,
13111311
raw: _bool = ...,
1312-
args=...,
1312+
args: Any = ...,
13131313
*,
13141314
result_type: Literal["reduce"],
1315-
**kwargs,
1316-
) -> Series: ...
1315+
**kwargs: Any,
1316+
) -> Series[Any]: ...
13171317
@overload
13181318
def apply(
13191319
self,
@@ -1322,10 +1322,10 @@ class DataFrame(NDFrame, OpsMixin):
13221322
],
13231323
axis: Axis = ...,
13241324
raw: _bool = ...,
1325-
args=...,
1325+
args: Any = ...,
13261326
*,
13271327
result_type: Literal["broadcast"],
1328-
**kwargs,
1328+
**kwargs: Any,
13291329
) -> DataFrame: ...
13301330

13311331
# apply() overloads with keyword result_type, and axis does matter
@@ -1335,10 +1335,10 @@ class DataFrame(NDFrame, OpsMixin):
13351335
f: Callable[..., Series[Any]],
13361336
axis: AxisIndex = ...,
13371337
raw: _bool = ...,
1338-
args=...,
1338+
args: Any = ...,
13391339
*,
13401340
result_type: Literal["reduce"],
1341-
**kwargs,
1341+
**kwargs: Any,
13421342
) -> Series[Any]: ...
13431343

13441344
# apply() overloads with default result_type of None, and keyword axis=1 matters
@@ -1348,32 +1348,32 @@ class DataFrame(NDFrame, OpsMixin):
13481348
f: Callable[..., S1],
13491349
raw: _bool = ...,
13501350
result_type: None = ...,
1351-
args=...,
1351+
args: Any = ...,
13521352
*,
13531353
axis: AxisColumn,
1354-
**kwargs,
1354+
**kwargs: Any,
13551355
) -> Series[S1]: ...
13561356
@overload
13571357
def apply(
13581358
self,
1359-
f: Callable[..., ListLikeExceptSeriesAndStr | Mapping],
1359+
f: Callable[..., ListLikeExceptSeriesAndStr | Mapping[Any, Any]],
13601360
raw: _bool = ...,
13611361
result_type: None = ...,
1362-
args=...,
1362+
args: Any = ...,
13631363
*,
13641364
axis: AxisColumn,
1365-
**kwargs,
1366-
) -> Series: ...
1365+
**kwargs: Any,
1366+
) -> Series[Any]: ...
13671367
@overload
13681368
def apply(
13691369
self,
13701370
f: Callable[..., Series[Any]],
13711371
raw: _bool = ...,
13721372
result_type: None = ...,
1373-
args=...,
1373+
args: Any = ...,
13741374
*,
13751375
axis: AxisColumn,
1376-
**kwargs,
1376+
**kwargs: Any,
13771377
) -> DataFrame: ...
13781378

13791379
# apply() overloads with keyword axis=1 and keyword result_type
@@ -1382,11 +1382,11 @@ class DataFrame(NDFrame, OpsMixin):
13821382
self,
13831383
f: Callable[..., Series[Any]],
13841384
raw: _bool = ...,
1385-
args=...,
1385+
args: Any = ...,
13861386
*,
13871387
axis: AxisColumn,
13881388
result_type: Literal["reduce"],
1389-
**kwargs,
1389+
**kwargs: Any,
13901390
) -> DataFrame: ...
13911391

13921392
# Add spacing between apply() overloads and remaining annotations

0 commit comments

Comments
 (0)