@@ -23,6 +23,48 @@ from pandas._typing import (
2323 HashableT4 ,
2424)
2525
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 : ...
2668@overload
2769def concat (
2870 objs : Iterable [None ] | Mapping [HashableT1 , None ],
@@ -38,7 +80,7 @@ def concat(
3880 copy : bool = ...,
3981) -> Never : ...
4082@overload
41- def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
83+ def concat ( # type: ignore[overload-overlap]
4284 objs : Iterable [DataFrame | None ] | Mapping [HashableT1 , DataFrame | None ],
4385 * ,
4486 axis : Axis = ...,
@@ -52,7 +94,7 @@ def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappin
5294 copy : bool = ...,
5395) -> DataFrame : ...
5496@overload
55- def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
97+ def concat ( # type: ignore[overload-overlap]
5698 objs : Iterable [Series | None ] | Mapping [HashableT1 , Series | None ],
5799 * ,
58100 axis : AxisIndex = ...,
0 commit comments