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

@@ -772,7 +772,7 @@ def eval(source: str, globals: Dict[str, Any] = None,
locals: Mapping[str, Any] = None) -> Any: ... # TODO code object as source
def exec(object: str, globals: Dict[str, Any] = None,
locals: Mapping[str, Any] = None) -> Any: ... # TODO code object as source
def exit(code: int = None) -> NoReturn: ...
def exit(code: Any = ...) -> NoReturn: ...
@overload
def filter(function: Callable[[_T], Any], iterable: Iterable[_T]) -> Iterator[_T]: ...
@overload