Skip to content

Commit 5a862b5

Browse files
authored
TYP: Remove None from copy deep values (pandas-dev#57532)
1 parent 6ed649d commit 5a862b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6327,7 +6327,7 @@ def astype(
63276327
return cast(Self, result)
63286328

63296329
@final
6330-
def copy(self, deep: bool | None = True) -> Self:
6330+
def copy(self, deep: bool = True) -> Self:
63316331
"""
63326332
Make a copy of this object's indices and data.
63336333
@@ -6460,7 +6460,7 @@ def copy(self, deep: bool | None = True) -> Self:
64606460
1 [3, 4]
64616461
dtype: object
64626462
"""
6463-
data = self._mgr.copy(deep=deep) # type: ignore[arg-type]
6463+
data = self._mgr.copy(deep=deep)
64646464
return self._constructor_from_mgr(data, axes=data.axes).__finalize__(
64656465
self, method="copy"
64666466
)

0 commit comments

Comments
 (0)