Skip to content

Commit 79ab7b2

Browse files
committed
add missing | None to copy argument in concat
1 parent 6f479f6 commit 79ab7b2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pandas-stubs/core/reshape/concat.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def concat( # type: ignore[overload-overlap]
3636
names: list[HashableT4] | None = ...,
3737
verify_integrity: bool = ...,
3838
sort: bool = ...,
39-
copy: bool = ...,
39+
copy: bool | None = ...,
4040
) -> DataFrame: ...
4141
@overload
4242
def concat( # pyright: ignore[reportOverlappingOverload]
@@ -50,7 +50,7 @@ def concat( # pyright: ignore[reportOverlappingOverload]
5050
names: list[HashableT4] | None = ...,
5151
verify_integrity: bool = ...,
5252
sort: bool = ...,
53-
copy: bool = ...,
53+
copy: bool | None = ...,
5454
) -> Series[S2]: ...
5555
@overload
5656
def concat( # type: ignore[overload-overlap]
@@ -64,7 +64,7 @@ def concat( # type: ignore[overload-overlap]
6464
names: list[HashableT4] | None = ...,
6565
verify_integrity: bool = ...,
6666
sort: bool = ...,
67-
copy: bool = ...,
67+
copy: bool | None = ...,
6868
) -> Series: ...
6969
@overload
7070
def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
@@ -78,7 +78,7 @@ def concat( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappin
7878
names: list[HashableT4] | None = ...,
7979
verify_integrity: bool = ...,
8080
sort: bool = ...,
81-
copy: bool = ...,
81+
copy: bool | None = ...,
8282
) -> DataFrame: ...
8383
@overload
8484
def concat(
@@ -92,7 +92,7 @@ def concat(
9292
names: list[HashableT4] | None = ...,
9393
verify_integrity: bool = ...,
9494
sort: bool = ...,
95-
copy: bool = ...,
95+
copy: bool | None = ...,
9696
) -> Never: ...
9797
@overload
9898
def concat( # type: ignore[overload-overlap]
@@ -106,7 +106,7 @@ def concat( # type: ignore[overload-overlap]
106106
names: list[HashableT4] | None = ...,
107107
verify_integrity: bool = ...,
108108
sort: bool = ...,
109-
copy: bool = ...,
109+
copy: bool | None = ...,
110110
) -> DataFrame: ...
111111
@overload
112112
def concat( # type: ignore[overload-overlap]
@@ -120,7 +120,7 @@ def concat( # type: ignore[overload-overlap]
120120
names: list[HashableT4] | None = ...,
121121
verify_integrity: bool = ...,
122122
sort: bool = ...,
123-
copy: bool = ...,
123+
copy: bool | None = ...,
124124
) -> Series: ...
125125
@overload
126126
def concat(
@@ -137,7 +137,7 @@ def concat(
137137
names: list[HashableT4] | None = ...,
138138
verify_integrity: bool = ...,
139139
sort: bool = ...,
140-
copy: bool = ...,
140+
copy: bool | None = ...,
141141
) -> DataFrame: ...
142142

143143
# Including either of the next 2 overloads causes mypy to complain about

0 commit comments

Comments
 (0)