@@ -95,19 +95,19 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
95
95
self , pat : str = ..., * , n : int = ..., expand : Literal [False ] = ...
96
96
) -> _TS2 : ...
97
97
@overload
98
- def partition (self , sep : str = ...) -> pd . DataFrame : ...
98
+ def partition (self , sep : str = ...) -> _TS : ...
99
99
@overload
100
- def partition (self , * , expand : Literal [True ]) -> pd . DataFrame : ...
100
+ def partition (self , * , expand : Literal [True ]) -> _TS : ...
101
101
@overload
102
- def partition (self , sep : str , expand : Literal [True ]) -> pd . DataFrame : ...
102
+ def partition (self , sep : str , expand : Literal [True ]) -> _TS : ...
103
103
@overload
104
104
def partition (
105
105
self , sep : str , expand : Literal [False ]
106
106
) -> pd .Series [type [object ]]: ...
107
107
@overload
108
108
def partition (self , * , expand : Literal [False ]) -> pd .Series [type [object ]]: ...
109
109
@overload
110
- def rpartition (self , sep : str = ...) -> pd . DataFrame : ...
110
+ def rpartition (self , sep : str = ...) -> _TS : ...
111
111
@overload
112
112
def rpartition (self , * , expand : Literal [True ]) -> pd .DataFrame : ...
113
113
@overload
@@ -171,7 +171,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
171
171
break_long_words : bool | None = ...,
172
172
break_on_hyphens : bool | None = ...,
173
173
) -> T : ...
174
- def get_dummies (self , sep : str = ...) -> pd . DataFrame : ...
174
+ def get_dummies (self , sep : str = ...) -> _TS : ...
175
175
def translate (self , table : dict [int , int | str | None ] | None ) -> T : ...
176
176
def count (self , pat : str , flags : int = ...) -> _TI : ...
177
177
def startswith (self , pat : str | tuple [str , ...], na : Any = ...) -> _TM : ...
@@ -180,7 +180,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
180
180
@overload
181
181
def extract (
182
182
self , pat : str , flags : int = ..., * , expand : Literal [True ] = ...
183
- ) -> pd . DataFrame : ...
183
+ ) -> _TS : ...
184
184
@overload
185
185
def extract (
186
186
self , pat : str , flags : int , expand : Literal [False ]
@@ -189,7 +189,7 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM, _TS2, _TI, _TE, _
189
189
def extract (
190
190
self , pat : str , flags : int = ..., * , expand : Literal [False ]
191
191
) -> Series [type [object ]]: ...
192
- def extractall (self , pat : str , flags : int = ...) -> pd . DataFrame : ...
192
+ def extractall (self , pat : str , flags : int = ...) -> _TS : ...
193
193
def find (self , sub : str , start : int = ..., end : int | None = ...) -> _TI : ...
194
194
def rfind (self , sub : str , start : int = ..., end : int | None = ...) -> _TI : ...
195
195
def normalize (self , form : Literal ["NFC" , "NFKC" , "NFD" , "NFKD" ]) -> T : ...
0 commit comments