mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Argument of input() is not restricted to str (#890)
This commit is contained in:
committed by
Guido van Rossum
parent
c048984ab9
commit
2b25b3ef6d
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user