@@ -4,6 +4,7 @@ from collections.abc import (
4
4
Sequence ,
5
5
)
6
6
from typing import (
7
+ Any ,
7
8
Literal ,
8
9
overload ,
9
10
)
@@ -39,7 +40,7 @@ def concat(
39
40
) -> DataFrame : ...
40
41
@overload
41
42
def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
42
- objs : Iterable [Series ] | Mapping [HashableT1 , Series ],
43
+ objs : Iterable [Series [ Any ]] | Mapping [HashableT1 , Series [ Any ] ],
43
44
* ,
44
45
axis : AxisIndex = ...,
45
46
join : Literal ["inner" , "outer" ] = ...,
@@ -50,10 +51,12 @@ def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappin
50
51
verify_integrity : bool = ...,
51
52
sort : bool = ...,
52
53
copy : bool = ...,
53
- ) -> Series : ...
54
+ ) -> Series [ Any ] : ...
54
55
@overload
55
56
def 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
+ ),
57
60
* ,
58
61
axis : Axis = ...,
59
62
join : Literal ["inner" , "outer" ] = ...,
@@ -95,7 +98,7 @@ def concat( # type: ignore[overload-overlap]
95
98
) -> DataFrame : ...
96
99
@overload
97
100
def 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 ],
99
102
* ,
100
103
axis : AxisIndex = ...,
101
104
join : Literal ["inner" , "outer" ] = ...,
@@ -106,12 +109,12 @@ def concat( # type: ignore[overload-overlap]
106
109
verify_integrity : bool = ...,
107
110
sort : bool = ...,
108
111
copy : bool = ...,
109
- ) -> Series : ...
112
+ ) -> Series [ Any ] : ...
110
113
@overload
111
114
def concat (
112
115
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 ]
115
118
),
116
119
* ,
117
120
axis : Axis = ...,
0 commit comments