@@ -750,14 +750,14 @@ def next(i: Iterator[_T]) -> _T: ...
750
750
def next (i : Iterator [_T ], default : _VT ) -> Union [_T , _VT ]: ...
751
751
def oct (i : int ) -> str : ... # TODO __index__
752
752
@overload
753
- def open (file : str , mode : str = 'r' , buffering : int = ...) -> BinaryIO : ...
753
+ def open (file : str , mode : unicode = ... , buffering : int = ...) -> BinaryIO : ...
754
754
@overload
755
- def open (file : unicode , mode : str = 'r' , buffering : int = ...) -> BinaryIO : ...
755
+ def open (file : unicode , mode : unicode = ... , buffering : int = ...) -> BinaryIO : ...
756
756
@overload
757
- def open (file : int , mode : str = 'r' , buffering : int = ...) -> BinaryIO : ...
757
+ def open (file : int , mode : unicode = ... , buffering : int = ...) -> BinaryIO : ...
758
758
def ord (c : unicode ) -> int : ...
759
759
# This is only available after from __future__ import print_function.
760
- def print (* values : Any , sep : unicode = u' ' , end : unicode = u' \n ' ,
760
+ def print (* values : Any , sep : unicode = ... , end : unicode = ... ,
761
761
file : IO [Any ] = ...) -> None : ...
762
762
@overload
763
763
def pow (x : int , y : int ) -> Any : ... # The return type can be int or float, depending on y.
@@ -768,7 +768,7 @@ def pow(x: float, y: float) -> float: ...
768
768
@overload
769
769
def pow (x : float , y : float , z : float ) -> float : ...
770
770
def quit (code : int = ...) -> None : ...
771
- def range (x : int , y : int = 0 , step : int = 1 ) -> List [int ]: ...
771
+ def range (x : int , y : int = ... , step : int = ... ) -> List [int ]: ...
772
772
def raw_input (prompt : Any = ...) -> str : ...
773
773
774
774
@overload
0 commit comments