@@ -23,6 +23,48 @@ from pandas._typing import (
23
23
HashableT4 ,
24
24
)
25
25
26
+ @overload
27
+ def concat (
28
+ objs : Iterable [DataFrame ] | Mapping [HashableT1 , DataFrame ],
29
+ * ,
30
+ axis : Axis = ...,
31
+ join : Literal ["inner" , "outer" ] = ...,
32
+ ignore_index : bool = ...,
33
+ keys : Iterable [HashableT2 ] = ...,
34
+ levels : Sequence [list [HashableT3 ] | tuple [HashableT3 , ...]] = ...,
35
+ names : list [HashableT4 ] = ...,
36
+ verify_integrity : bool = ...,
37
+ sort : bool = ...,
38
+ copy : bool = ...,
39
+ ) -> DataFrame : ...
40
+ @overload
41
+ def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
42
+ objs : Iterable [Series ] | Mapping [HashableT1 , Series ],
43
+ * ,
44
+ axis : AxisIndex = ...,
45
+ join : Literal ["inner" , "outer" ] = ...,
46
+ ignore_index : bool = ...,
47
+ keys : Iterable [HashableT2 ] = ...,
48
+ levels : Sequence [list [HashableT3 ] | tuple [HashableT3 , ...]] = ...,
49
+ names : list [HashableT4 ] = ...,
50
+ verify_integrity : bool = ...,
51
+ sort : bool = ...,
52
+ copy : bool = ...,
53
+ ) -> Series : ...
54
+ @overload
55
+ def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
56
+ objs : Iterable [Series | DataFrame ] | Mapping [HashableT1 , Series | DataFrame ],
57
+ * ,
58
+ axis : Axis = ...,
59
+ join : Literal ["inner" , "outer" ] = ...,
60
+ ignore_index : bool = ...,
61
+ keys : Iterable [HashableT2 ] = ...,
62
+ levels : Sequence [list [HashableT3 ] | tuple [HashableT3 , ...]] = ...,
63
+ names : list [HashableT4 ] = ...,
64
+ verify_integrity : bool = ...,
65
+ sort : bool = ...,
66
+ copy : bool = ...,
67
+ ) -> DataFrame : ...
26
68
@overload
27
69
def concat (
28
70
objs : Iterable [None ] | Mapping [HashableT1 , None ],
@@ -38,7 +80,7 @@ def concat(
38
80
copy : bool = ...,
39
81
) -> Never : ...
40
82
@overload
41
- def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
83
+ def concat ( # type: ignore[overload-overlap]
42
84
objs : Iterable [DataFrame | None ] | Mapping [HashableT1 , DataFrame | None ],
43
85
* ,
44
86
axis : Axis = ...,
@@ -52,7 +94,7 @@ def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappin
52
94
copy : bool = ...,
53
95
) -> DataFrame : ...
54
96
@overload
55
- def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
97
+ def concat ( # type: ignore[overload-overlap]
56
98
objs : Iterable [Series | None ] | Mapping [HashableT1 , Series | None ],
57
99
* ,
58
100
axis : AxisIndex = ...,
0 commit comments