@@ -4,17 +4,26 @@ from pandas.core.arrays.categorical import factorize_from_iterable as factorize_
44from pandas .core .generic import NDFrame as NDFrame
55from pandas .core .indexes .api import all_indexes_same as all_indexes_same , ensure_index as ensure_index , get_consensus_names as get_consensus_names , get_objs_combined_axis as get_objs_combined_axis
66from pandas .core .internals import concatenate_block_managers as concatenate_block_managers
7- from typing import Any , Iterable , Mapping , overload
7+ from typing import Any , Iterable , Mapping , overload , Optional
8+
89
910# For some reason mypy won't read this declaration correctly if we use 2 overloads with union
1011@overload
1112def concat (objs : Iterable [DataFrame ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> DataFrame : ...
1213@overload
14+ def concat (objs : Mapping [Optional [int ], DataFrame ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> DataFrame : ...
15+ @overload
16+ def concat (objs : Mapping [Optional [str ], DataFrame ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> DataFrame : ...
17+ @overload
1318def concat (objs : Mapping [Label , DataFrame ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> DataFrame : ...
1419@overload
1520def concat (objs : Iterable [Series ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> FrameOrSeries : ...
1621@overload
1722def concat (objs : Mapping [Label , Series ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> FrameOrSeries : ...
23+ @overload
24+ def concat (objs : Mapping [Optional [int ], Series ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> FrameOrSeries : ...
25+ @overload
26+ def concat (objs : Mapping [Optional [str ], Series ], axis : Axis = ..., join : str = ..., ignore_index : bool = ..., keys : Any = ..., levels : Any = ..., names : Any = ..., verify_integrity : bool = ..., sort : bool = ..., copy : bool = ...) -> FrameOrSeries : ...
1827
1928class _Concatenator :
2029 intersect : bool = ...
0 commit comments