diff --git a/pandas-stubs/core/strings.pyi b/pandas-stubs/core/strings.pyi index 9068601c3..7e0dc880a 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