Skip to content

Commit c5eecf8

Browse files
authored
Change signature of StringMethods.rsplit to match pandas (#1056)
1 parent facb30f commit c5eecf8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas-stubs/core/strings.pyi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,9 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM]):
6969
self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ...
7070
) -> T: ...
7171
@overload
72-
def rsplit(
73-
self, pat: str = ..., *, n: int = ..., expand: Literal[True], regex: bool = ...
74-
) -> _TS: ...
72+
def rsplit(self, pat: str = ..., *, n: int = ..., expand: Literal[True]) -> _TS: ...
7573
@overload
76-
def rsplit(
77-
self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ...
78-
) -> T: ...
74+
def rsplit(self, pat: str = ..., *, n: int = ..., expand: bool = ...) -> T: ...
7975
@overload
8076
def partition(self, sep: str = ...) -> pd.DataFrame: ...
8177
@overload

0 commit comments

Comments
 (0)