@@ -4,6 +4,7 @@ from collections.abc import (
44 Sequence ,
55)
66from typing import (
7+ Any ,
78 Literal ,
89 overload ,
910)
@@ -39,7 +40,7 @@ def concat(
3940) -> DataFrame : ...
4041@overload
4142def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
42- objs : Iterable [Series ] | Mapping [HashableT1 , Series ],
43+ objs : Iterable [Series [ Any ]] | Mapping [HashableT1 , Series [ Any ] ],
4344 * ,
4445 axis : AxisIndex = ...,
4546 join : Literal ["inner" , "outer" ] = ...,
@@ -50,10 +51,12 @@ def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappin
5051 verify_integrity : bool = ...,
5152 sort : bool = ...,
5253 copy : bool = ...,
53- ) -> Series : ...
54+ ) -> Series [ Any ] : ...
5455@overload
5556def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
56- objs : Iterable [Series | DataFrame ] | Mapping [HashableT1 , Series | DataFrame ],
57+ objs : (
58+ Iterable [Series [Any ] | DataFrame ] | Mapping [HashableT1 , Series [Any ] | DataFrame ]
59+ ),
5760 * ,
5861 axis : Axis = ...,
5962 join : Literal ["inner" , "outer" ] = ...,
@@ -95,7 +98,7 @@ def concat( # type: ignore[overload-overlap]
9598) -> DataFrame : ...
9699@overload
97100def concat ( # type: ignore[overload-overlap]
98- objs : Iterable [Series | None ] | Mapping [HashableT1 , Series | None ],
101+ objs : Iterable [Series [ Any ] | None ] | Mapping [HashableT1 , Series [ Any ] | None ],
99102 * ,
100103 axis : AxisIndex = ...,
101104 join : Literal ["inner" , "outer" ] = ...,
@@ -106,12 +109,12 @@ def concat( # type: ignore[overload-overlap]
106109 verify_integrity : bool = ...,
107110 sort : bool = ...,
108111 copy : bool = ...,
109- ) -> Series : ...
112+ ) -> Series [ Any ] : ...
110113@overload
111114def concat (
112115 objs : (
113- Iterable [Series | DataFrame | None ]
114- | Mapping [HashableT1 , Series | DataFrame | None ]
116+ Iterable [Series [ Any ] | DataFrame | None ]
117+ | Mapping [HashableT1 , Series [ Any ] | DataFrame | None ]
115118 ),
116119 * ,
117120 axis : Axis = ...,
0 commit comments