@@ -221,15 +221,15 @@ class str(Sequence[str]):
221
221
def __init__ (self , o : bytes , encoding : str = ..., errors : str = 'strict' ) -> None : ...
222
222
def capitalize (self ) -> str : ...
223
223
def center (self , width : int , fillchar : str = ' ' ) -> str : ...
224
- def count (self , x : str ) -> int : ...
224
+ def count (self , x : str , start : Optional [ int ] = ..., end : Optional [ int ] = ... ) -> int : ...
225
225
def encode (self , encoding : str = 'utf-8' , errors : str = 'strict' ) -> bytes : ...
226
226
def endswith (self , suffix : Union [str , Tuple [str , ...]], start : int = None ,
227
227
end : int = None ) -> bool : ...
228
228
def expandtabs (self , tabsize : int = 8 ) -> str : ...
229
- def find (self , sub : str , start : int = 0 , end : int = 0 ) -> int : ...
229
+ def find (self , sub : str , start : Optional [ int ] = ... , end : Optional [ int ] = ... ) -> int : ...
230
230
def format (self , * args : Any , ** kwargs : Any ) -> str : ...
231
231
def format_map (self , map : Mapping [str , Any ]) -> str : ...
232
- def index (self , sub : str , start : int = 0 , end : int = 0 ) -> int : ...
232
+ def index (self , sub : str , start : Optional [ int ] = ... , end : Optional [ int ] = ... ) -> int : ...
233
233
def isalnum (self ) -> bool : ...
234
234
def isalpha (self ) -> bool : ...
235
235
def isdecimal (self ) -> bool : ...
@@ -247,8 +247,8 @@ class str(Sequence[str]):
247
247
def lstrip (self , chars : str = None ) -> str : ...
248
248
def partition (self , sep : str ) -> Tuple [str , str , str ]: ...
249
249
def replace (self , old : str , new : str , count : int = - 1 ) -> str : ...
250
- def rfind (self , sub : str , start : int = 0 , end : int = 0 ) -> int : ...
251
- def rindex (self , sub : str , start : int = 0 , end : int = 0 ) -> int : ...
250
+ def rfind (self , sub : str , start : Optional [ int ] = ... , end : Optional [ int ] = ... ) -> int : ...
251
+ def rindex (self , sub : str , start : Optional [ int ] = ... , end : Optional [ int ] = ... ) -> int : ...
252
252
def rjust (self , width : int , fillchar : str = ' ' ) -> str : ...
253
253
def rpartition (self , sep : str ) -> Tuple [str , str , str ]: ...
254
254
def rsplit (self , sep : str = None , maxsplit : int = - 1 ) -> List [str ]: ...
0 commit comments