@@ -238,7 +238,7 @@ class str(Sequence[str]):
238
238
239
239
def capitalize (self ) -> str : ...
240
240
def casefold (self ) -> str : ...
241
- def center (self , width : int , fillchar : str = ' ' ) -> str : ...
241
+ def center (self , width : int , fillchar : str = ... ) -> str : ...
242
242
def count (self , x : str , __start : Optional [int ] = ..., __end : Optional [int ] = ...) -> int : ...
243
243
def encode (self , encoding : str = 'utf-8' , errors : str = 'strict' ) -> bytes : ...
244
244
def endswith (self , suffix : Union [str , Tuple [str , ...]], start : Optional [int ] = None ,
@@ -260,14 +260,14 @@ class str(Sequence[str]):
260
260
def istitle (self ) -> bool : ...
261
261
def isupper (self ) -> bool : ...
262
262
def join (self , iterable : Iterable [str ]) -> str : ...
263
- def ljust (self , width : int , fillchar : str = ' ' ) -> str : ...
263
+ def ljust (self , width : int , fillchar : str = ... ) -> str : ...
264
264
def lower (self ) -> str : ...
265
265
def lstrip (self , chars : Optional [str ] = None ) -> str : ...
266
266
def partition (self , sep : str ) -> Tuple [str , str , str ]: ...
267
267
def replace (self , old : str , new : str , count : int = - 1 ) -> str : ...
268
268
def rfind (self , sub : str , __start : Optional [int ] = ..., __end : Optional [int ] = ...) -> int : ...
269
269
def rindex (self , sub : str , __start : Optional [int ] = ..., __end : Optional [int ] = ...) -> int : ...
270
- def rjust (self , width : int , fillchar : str = ' ' ) -> str : ...
270
+ def rjust (self , width : int , fillchar : str = ... ) -> str : ...
271
271
def rpartition (self , sep : str ) -> Tuple [str , str , str ]: ...
272
272
def rsplit (self , sep : Optional [str ] = None , maxsplit : int = - 1 ) -> List [str ]: ...
273
273
def rstrip (self , chars : Optional [str ] = None ) -> str : ...
@@ -782,7 +782,7 @@ def filter(function: Optional[Callable[[_T], Any]],
782
782
iterable : Iterable [_T ]) -> Iterator [_T ]: ...
783
783
@overload
784
784
def filter (function : None , iterable : Iterable [Optional [_T ]]) -> Iterator [_T ]: ...
785
- def format (o : object , format_spec : str = '' ) -> str : ...
785
+ def format (o : object , format_spec : str = ... ) -> str : ...
786
786
def getattr (o : Any , name : str , default : Any = ...) -> Any : ...
787
787
def globals () -> Dict [str , Any ]: ...
788
788
def hasattr (o : Any , name : str ) -> bool : ...
@@ -834,7 +834,7 @@ else:
834
834
835
835
def ord (c : Union [str , bytes , bytearray ]) -> int : ...
836
836
# TODO: in Python 3.2, print() does not support flush
837
- def print (* values : Any , sep : str = ' ' , end : str = ' \n ' , file : Optional [IO [str ]] = None , flush : bool = False ) -> None : ...
837
+ def print (* values : Any , sep : str = ... , end : str = ... , file : Optional [IO [str ]] = None , flush : bool = False ) -> None : ...
838
838
@overload
839
839
def pow (x : int , y : int ) -> Any : ... # The return type can be int or float, depending on y
840
840
@overload
0 commit comments