Argument of input() is not restricted to str (#890)

This commit is contained in:
Andrey Vlasovskikh
2017-01-29 21:34:32 +03:00
committed by Guido van Rossum
parent c048984ab9
commit 2b25b3ef6d
2 changed files with 3 additions and 3 deletions

View File

@@ -701,7 +701,7 @@ def hasattr(o: Any, name: unicode) -> bool: ...
def hash(o: object) -> int: ...
def hex(i: int) -> str: ... # TODO __index__
def id(o: object) -> int: ...
def input(prompt: unicode = ...) -> Any: ...
def input(prompt: Any = ...) -> Any: ...
def intern(string: str) -> str: ...
@overload
def iter(iterable: Iterable[_T]) -> Iterator[_T]: ...
@@ -749,7 +749,7 @@ def pow(x: float, y: float) -> float: ...
def pow(x: float, y: float, z: float) -> float: ...
def quit(code: int = ...) -> None: ...
def range(x: int, y: int = 0, step: int = 1) -> List[int]: ...
def raw_input(prompt: unicode = ...) -> str: ...
def raw_input(prompt: Any = ...) -> str: ...
@overload
def reduce(function: Callable[[_T, _S], _T], iterable: Iterable[_S], initializer: _T) -> _T: ...