From c5eecf8f1e51fe20c1d928ac0af58edbf07e9d7c Mon Sep 17 00:00:00 2001 From: kroche98 Date: Mon, 25 Nov 2024 13:08:10 -0500 Subject: [PATCH] Change signature of StringMethods.rsplit to match pandas (#1056) --- pandas-stubs/core/strings.pyi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandas-stubs/core/strings.pyi b/pandas-stubs/core/strings.pyi index 9068601c..7e0dc880 100644 --- a/pandas-stubs/core/strings.pyi +++ b/pandas-stubs/core/strings.pyi @@ -69,13 +69,9 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM]): self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ... ) -> T: ... @overload - def rsplit( - self, pat: str = ..., *, n: int = ..., expand: Literal[True], regex: bool = ... - ) -> _TS: ... + def rsplit(self, pat: str = ..., *, n: int = ..., expand: Literal[True]) -> _TS: ... @overload - def rsplit( - self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ... - ) -> T: ... + def rsplit(self, pat: str = ..., *, n: int = ..., expand: bool = ...) -> T: ... @overload def partition(self, sep: str = ...) -> pd.DataFrame: ... @overload