@@ -12,8 +12,10 @@ from pandas import (
12
12
DataFrame ,
13
13
Series ,
14
14
)
15
+ from typing_extensions import Never
15
16
16
17
from pandas ._typing import (
18
+ Axis ,
17
19
AxisColumn ,
18
20
AxisIndex ,
19
21
HashableT1 ,
@@ -24,9 +26,23 @@ from pandas._typing import (
24
26
25
27
@overload
26
28
def concat (
27
- objs : Iterable [DataFrame ] | Mapping [HashableT1 , DataFrame ],
29
+ objs : Iterable [None ] | Mapping [HashableT1 , None ],
28
30
* ,
29
- axis : AxisIndex = ...,
31
+ axis : Axis = ...,
32
+ join : Literal ["inner" , "outer" ] = ...,
33
+ ignore_index : bool = ...,
34
+ keys : Iterable [HashableT2 ] = ...,
35
+ levels : Sequence [list [HashableT3 ] | tuple [HashableT3 , ...]] = ...,
36
+ names : list [HashableT4 ] = ...,
37
+ verify_integrity : bool = ...,
38
+ sort : bool = ...,
39
+ copy : bool = ...,
40
+ ) -> Never : ...
41
+ @overload
42
+ def concat ( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
43
+ objs : Iterable [DataFrame | None ] | Mapping [HashableT1 , DataFrame | None ],
44
+ * ,
45
+ axis : Axis = ...,
30
46
join : Literal ["inner" , "outer" ] = ...,
31
47
ignore_index : bool = ...,
32
48
keys : Iterable [HashableT2 ] = ...,
@@ -38,7 +54,7 @@ def concat(
38
54
) -> DataFrame : ...
39
55
@overload
40
56
def concat (
41
- objs : Iterable [Series ] | Mapping [HashableT1 , Series ],
57
+ objs : Iterable [Series | None ] | Mapping [HashableT1 , Series | None ],
42
58
* ,
43
59
axis : AxisIndex = ...,
44
60
join : Literal ["inner" , "outer" ] = ...,
@@ -52,7 +68,10 @@ def concat(
52
68
) -> Series : ...
53
69
@overload
54
70
def concat (
55
- objs : Iterable [Series | DataFrame ] | Mapping [HashableT1 , Series | DataFrame ],
71
+ objs : (
72
+ Iterable [Series | DataFrame | None ]
73
+ | Mapping [HashableT1 , Series | DataFrame | None ]
74
+ ),
56
75
* ,
57
76
axis : AxisColumn ,
58
77
join : Literal ["inner" , "outer" ] = ...,
0 commit comments