From fbd8e72f6386af457eb1cd2a801c7c548bc06028 Mon Sep 17 00:00:00 2001 From: Patrick Hoefler <61934744+phofl@users.noreply.github.com> Date: Tue, 20 Feb 2024 18:11:11 +0100 Subject: [PATCH] TYP: Remove None from copy deep values --- pandas/core/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bc5f6b2733b99..19d32f8fb9312 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6327,7 +6327,7 @@ def astype( return cast(Self, result) @final - def copy(self, deep: bool | None = True) -> Self: + def copy(self, deep: bool = True) -> Self: """ Make a copy of this object's indices and data. @@ -6460,7 +6460,7 @@ def copy(self, deep: bool | None = True) -> Self: 1 [3, 4] dtype: object """ - data = self._mgr.copy(deep=deep) # type: ignore[arg-type] + data = self._mgr.copy(deep=deep) return self._constructor_from_mgr(data, axes=data.axes).__finalize__( self, method="copy" )