exit function takes argument of any type. (#1116)

The type annotations for exit were incorrectly limited to int in two places; the others that I looked at are already correct.
This commit is contained in:
George King
2017-03-29 17:24:34 -04:00
committed by Guido van Rossum
parent 84371e812c
commit 7c413c904d
2 changed files with 2 additions and 2 deletions

View File

@@ -713,7 +713,7 @@ def dir(o: object = ...) -> List[str]: ...
def divmod(a: int, b: int) -> Tuple[int, int]: ...
@overload
def divmod(a: float, b: float) -> Tuple[float, float]: ...
def exit(code: int = ...) -> NoReturn: ...
def exit(code: Any = ...) -> NoReturn: ...
@overload
def filter(function: Callable[[_T], Any],
iterable: Iterable[_T]) -> List[_T]: ...