Skip to content

Commit 3d581a8

Browse files
committed
fixup
1 parent 5dfa7fa commit 3d581a8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas-stubs/core/strings.pyi

+7-7
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
9595
self, pat: str = ..., *, n: int = ..., expand: Literal[False] = ...
9696
) -> _TS2: ...
9797
@overload
98-
def partition(self, sep: str = ...) -> pd.DataFrame: ...
98+
def partition(self, sep: str = ...) -> _TS: ...
9999
@overload
100-
def partition(self, *, expand: Literal[True]) -> pd.DataFrame: ...
100+
def partition(self, *, expand: Literal[True]) -> _TS: ...
101101
@overload
102-
def partition(self, sep: str, expand: Literal[True]) -> pd.DataFrame: ...
102+
def partition(self, sep: str, expand: Literal[True]) -> _TS: ...
103103
@overload
104104
def partition(
105105
self, sep: str, expand: Literal[False]
106106
) -> pd.Series[type[object]]: ...
107107
@overload
108108
def partition(self, *, expand: Literal[False]) -> pd.Series[type[object]]: ...
109109
@overload
110-
def rpartition(self, sep: str = ...) -> pd.DataFrame: ...
110+
def rpartition(self, sep: str = ...) -> _TS: ...
111111
@overload
112112
def rpartition(self, *, expand: Literal[True]) -> pd.DataFrame: ...
113113
@overload
@@ -171,7 +171,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
171171
break_long_words: bool | None = ...,
172172
break_on_hyphens: bool | None = ...,
173173
) -> T: ...
174-
def get_dummies(self, sep: str = ...) -> pd.DataFrame: ...
174+
def get_dummies(self, sep: str = ...) -> _TS: ...
175175
def translate(self, table: dict[int, int | str | None] | None) -> T: ...
176176
def count(self, pat: str, flags: int = ...) -> _TI: ...
177177
def startswith(self, pat: str | tuple[str, ...], na: Any = ...) -> _TM: ...
@@ -180,7 +180,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
180180
@overload
181181
def extract(
182182
self, pat: str, flags: int = ..., *, expand: Literal[True] = ...
183-
) -> pd.DataFrame: ...
183+
) -> _TS: ...
184184
@overload
185185
def extract(
186186
self, pat: str, flags: int, expand: Literal[False]
@@ -189,7 +189,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
189189
def extract(
190190
self, pat: str, flags: int = ..., *, expand: Literal[False]
191191
) -> Series[type[object]]: ...
192-
def extractall(self, pat: str, flags: int = ...) -> pd.DataFrame: ...
192+
def extractall(self, pat: str, flags: int = ...) -> _TS: ...
193193
def find(self, sub: str, start: int = ..., end: int | None = ...) -> _TI: ...
194194
def rfind(self, sub: str, start: int = ..., end: int | None = ...) -> _TI: ...
195195
def normalize(self, form: Literal["NFC", "NFKC", "NFD", "NFKD"]) -> T: ...

0 commit comments

Comments
 (0)