From 2821023f5b9ea1a45b20431babbee47e62ece32e Mon Sep 17 00:00:00 2001 From: Kevin Roche Date: Mon, 25 Nov 2024 11:48:53 -0500 Subject: [PATCH] Change signature of StringMethods.rsplit to match pandas --- 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