@@ -1254,8 +1254,8 @@ class DataFrame(NDFrame, OpsMixin):
1254
1254
axis : AxisIndex = ...,
1255
1255
raw : _bool = ...,
1256
1256
result_type : None = ...,
1257
- args = ...,
1258
- ** kwargs ,
1257
+ args : Any = ...,
1258
+ ** kwargs : Any ,
1259
1259
) -> DataFrame : ...
1260
1260
@overload
1261
1261
def apply (
@@ -1264,8 +1264,8 @@ class DataFrame(NDFrame, OpsMixin):
1264
1264
axis : AxisIndex = ...,
1265
1265
raw : _bool = ...,
1266
1266
result_type : None = ...,
1267
- args = ...,
1268
- ** kwargs ,
1267
+ args : Any = ...,
1268
+ ** kwargs : Any ,
1269
1269
) -> Series [S1 ]: ...
1270
1270
# Since non-scalar type T is not supported in Series[T],
1271
1271
# we separate this overload from the above one
@@ -1276,9 +1276,9 @@ class DataFrame(NDFrame, OpsMixin):
1276
1276
axis : AxisIndex = ...,
1277
1277
raw : _bool = ...,
1278
1278
result_type : None = ...,
1279
- args = ...,
1280
- ** kwargs ,
1281
- ) -> Series : ...
1279
+ args : Any = ...,
1280
+ ** kwargs : Any ,
1281
+ ) -> Series [ Any ] : ...
1282
1282
1283
1283
# apply() overloads with keyword result_type, and axis does not matter
1284
1284
@overload
@@ -1287,33 +1287,33 @@ class DataFrame(NDFrame, OpsMixin):
1287
1287
f : Callable [..., S1 ],
1288
1288
axis : Axis = ...,
1289
1289
raw : _bool = ...,
1290
- args = ...,
1290
+ args : Any = ...,
1291
1291
* ,
1292
1292
result_type : Literal ["expand" , "reduce" ],
1293
- ** kwargs ,
1293
+ ** kwargs : Any ,
1294
1294
) -> Series [S1 ]: ...
1295
1295
@overload
1296
1296
def apply (
1297
1297
self ,
1298
1298
f : Callable [..., ListLikeExceptSeriesAndStr | Series [Any ] | Mapping [Any , Any ]],
1299
1299
axis : Axis = ...,
1300
1300
raw : _bool = ...,
1301
- args = ...,
1301
+ args : Any = ...,
1302
1302
* ,
1303
1303
result_type : Literal ["expand" ],
1304
- ** kwargs ,
1304
+ ** kwargs : Any ,
1305
1305
) -> DataFrame : ...
1306
1306
@overload
1307
1307
def apply (
1308
1308
self ,
1309
- f : Callable [..., ListLikeExceptSeriesAndStr | Mapping ],
1309
+ f : Callable [..., ListLikeExceptSeriesAndStr | Mapping [ Any , Any ] ],
1310
1310
axis : Axis = ...,
1311
1311
raw : _bool = ...,
1312
- args = ...,
1312
+ args : Any = ...,
1313
1313
* ,
1314
1314
result_type : Literal ["reduce" ],
1315
- ** kwargs ,
1316
- ) -> Series : ...
1315
+ ** kwargs : Any ,
1316
+ ) -> Series [ Any ] : ...
1317
1317
@overload
1318
1318
def apply (
1319
1319
self ,
@@ -1322,10 +1322,10 @@ class DataFrame(NDFrame, OpsMixin):
1322
1322
],
1323
1323
axis : Axis = ...,
1324
1324
raw : _bool = ...,
1325
- args = ...,
1325
+ args : Any = ...,
1326
1326
* ,
1327
1327
result_type : Literal ["broadcast" ],
1328
- ** kwargs ,
1328
+ ** kwargs : Any ,
1329
1329
) -> DataFrame : ...
1330
1330
1331
1331
# apply() overloads with keyword result_type, and axis does matter
@@ -1335,10 +1335,10 @@ class DataFrame(NDFrame, OpsMixin):
1335
1335
f : Callable [..., Series [Any ]],
1336
1336
axis : AxisIndex = ...,
1337
1337
raw : _bool = ...,
1338
- args = ...,
1338
+ args : Any = ...,
1339
1339
* ,
1340
1340
result_type : Literal ["reduce" ],
1341
- ** kwargs ,
1341
+ ** kwargs : Any ,
1342
1342
) -> Series [Any ]: ...
1343
1343
1344
1344
# apply() overloads with default result_type of None, and keyword axis=1 matters
@@ -1348,32 +1348,32 @@ class DataFrame(NDFrame, OpsMixin):
1348
1348
f : Callable [..., S1 ],
1349
1349
raw : _bool = ...,
1350
1350
result_type : None = ...,
1351
- args = ...,
1351
+ args : Any = ...,
1352
1352
* ,
1353
1353
axis : AxisColumn ,
1354
- ** kwargs ,
1354
+ ** kwargs : Any ,
1355
1355
) -> Series [S1 ]: ...
1356
1356
@overload
1357
1357
def apply (
1358
1358
self ,
1359
- f : Callable [..., ListLikeExceptSeriesAndStr | Mapping ],
1359
+ f : Callable [..., ListLikeExceptSeriesAndStr | Mapping [ Any , Any ] ],
1360
1360
raw : _bool = ...,
1361
1361
result_type : None = ...,
1362
- args = ...,
1362
+ args : Any = ...,
1363
1363
* ,
1364
1364
axis : AxisColumn ,
1365
- ** kwargs ,
1366
- ) -> Series : ...
1365
+ ** kwargs : Any ,
1366
+ ) -> Series [ Any ] : ...
1367
1367
@overload
1368
1368
def apply (
1369
1369
self ,
1370
1370
f : Callable [..., Series [Any ]],
1371
1371
raw : _bool = ...,
1372
1372
result_type : None = ...,
1373
- args = ...,
1373
+ args : Any = ...,
1374
1374
* ,
1375
1375
axis : AxisColumn ,
1376
- ** kwargs ,
1376
+ ** kwargs : Any ,
1377
1377
) -> DataFrame : ...
1378
1378
1379
1379
# apply() overloads with keyword axis=1 and keyword result_type
@@ -1382,11 +1382,11 @@ class DataFrame(NDFrame, OpsMixin):
1382
1382
self ,
1383
1383
f : Callable [..., Series [Any ]],
1384
1384
raw : _bool = ...,
1385
- args = ...,
1385
+ args : Any = ...,
1386
1386
* ,
1387
1387
axis : AxisColumn ,
1388
1388
result_type : Literal ["reduce" ],
1389
- ** kwargs ,
1389
+ ** kwargs : Any ,
1390
1390
) -> DataFrame : ...
1391
1391
1392
1392
# Add spacing between apply() overloads and remaining annotations
0 commit comments