@@ -1315,11 +1315,11 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
13151315 @overload
13161316 def stack (
13171317 self , level : Level | list [Level ] = ..., dropna : _bool = ..., sort : _bool = ...
1318- ) -> Self | Series [ Any ] : ...
1318+ ) -> Self | Series : ...
13191319 @overload
13201320 def stack (
13211321 self , level : Level | list [Level ] = ..., future_stack : _bool = ...
1322- ) -> Self | Series [ Any ] : ...
1322+ ) -> Self | Series : ...
13231323 def explode (
13241324 self , column : Sequence [Hashable ], ignore_index : _bool = ...
13251325 ) -> Self : ...
@@ -1379,7 +1379,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
13791379 @overload
13801380 def apply (
13811381 self ,
1382- f : Callable [..., ListLikeExceptSeriesAndStr | Series [ Any ] ],
1382+ f : Callable [..., ListLikeExceptSeriesAndStr | Series ],
13831383 axis : AxisIndex = ...,
13841384 raw : _bool = ...,
13851385 result_type : None = ...,
@@ -1407,7 +1407,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
14071407 result_type : None = ...,
14081408 args : Any = ...,
14091409 ** kwargs : Any ,
1410- ) -> Series [ Any ] : ...
1410+ ) -> Series : ...
14111411
14121412 # apply() overloads with keyword result_type, and axis does not matter
14131413 @overload
@@ -1424,7 +1424,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
14241424 @overload
14251425 def apply (
14261426 self ,
1427- f : Callable [..., ListLikeExceptSeriesAndStr | Series [ Any ] | Mapping [Any , Any ]],
1427+ f : Callable [..., ListLikeExceptSeriesAndStr | Series | Mapping [Any , Any ]],
14281428 axis : Axis = ...,
14291429 raw : _bool = ...,
14301430 args : Any = ...,
@@ -1442,12 +1442,12 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
14421442 * ,
14431443 result_type : Literal ["reduce" ],
14441444 ** kwargs : Any ,
1445- ) -> Series [ Any ] : ...
1445+ ) -> Series : ...
14461446 @overload
14471447 def apply (
14481448 self ,
14491449 f : Callable [
1450- ..., ListLikeExceptSeriesAndStr | Series [ Any ] | Scalar | Mapping [Any , Any ]
1450+ ..., ListLikeExceptSeriesAndStr | Series | Scalar | Mapping [Any , Any ]
14511451 ],
14521452 axis : Axis = ...,
14531453 raw : _bool = ...,
@@ -1461,14 +1461,14 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
14611461 @overload
14621462 def apply (
14631463 self ,
1464- f : Callable [..., Series [ Any ] ],
1464+ f : Callable [..., Series ],
14651465 axis : AxisIndex = ...,
14661466 raw : _bool = ...,
14671467 args : Any = ...,
14681468 * ,
14691469 result_type : Literal ["reduce" ],
14701470 ** kwargs : Any ,
1471- ) -> Series [ Any ] : ...
1471+ ) -> Series : ...
14721472
14731473 # apply() overloads with default result_type of None, and keyword axis=1 matters
14741474 @overload
@@ -1492,11 +1492,11 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
14921492 * ,
14931493 axis : AxisColumn ,
14941494 ** kwargs : Any ,
1495- ) -> Series [ Any ] : ...
1495+ ) -> Series : ...
14961496 @overload
14971497 def apply (
14981498 self ,
1499- f : Callable [..., Series [ Any ] ],
1499+ f : Callable [..., Series ],
15001500 raw : _bool = ...,
15011501 result_type : None = ...,
15021502 args : Any = ...,
@@ -1509,7 +1509,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
15091509 @overload
15101510 def apply (
15111511 self ,
1512- f : Callable [..., Series [ Any ] ],
1512+ f : Callable [..., Series ],
15131513 raw : _bool = ...,
15141514 args : Any = ...,
15151515 * ,
@@ -1534,7 +1534,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
15341534 ) -> Self : ...
15351535 def merge (
15361536 self ,
1537- right : DataFrame | Series [ Any ] ,
1537+ right : DataFrame | Series ,
15381538 how : MergeHow = ...,
15391539 on : IndexLabel | AnyArrayLike | None = ...,
15401540 left_on : IndexLabel | AnyArrayLike | None = ...,
0 commit comments