Skip to content

Commit 70f2846

Browse files
rhshadrachKevin D Smith
authored and
Kevin D Smith
committed
BUG: Concat typing (pandas-dev#36409)
1 parent dea988a commit 70f2846

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/reshape/concat.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
if TYPE_CHECKING:
3333
from pandas import DataFrame
34+
from pandas.core.generic import NDFrame
3435

3536
# ---------------------------------------------------------------------
3637
# Concatenate DataFrame objects
@@ -54,7 +55,7 @@ def concat(
5455

5556
@overload
5657
def concat(
57-
objs: Union[Iterable[FrameOrSeries], Mapping[Label, FrameOrSeries]],
58+
objs: Union[Iterable["NDFrame"], Mapping[Label, "NDFrame"]],
5859
axis=0,
5960
join: str = "outer",
6061
ignore_index: bool = False,
@@ -69,7 +70,7 @@ def concat(
6970

7071

7172
def concat(
72-
objs: Union[Iterable[FrameOrSeries], Mapping[Label, FrameOrSeries]],
73+
objs: Union[Iterable["NDFrame"], Mapping[Label, "NDFrame"]],
7374
axis=0,
7475
join="outer",
7576
ignore_index: bool = False,

0 commit comments

Comments
 (0)