Skip to content

Commit

Permalink
Change signature of StringMethods.rsplit to match pandas (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroche98 authored Nov 25, 2024
1 parent facb30f commit c5eecf8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas-stubs/core/strings.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5eecf8

Please sign in to comment.