Fix incorrect sys.exit() type.

This commit is contained in:
Tim Abbott
2016-02-05 11:22:45 -08:00
parent 89ed6e92d4
commit a648f5eee1
2 changed files with 5 additions and 2 deletions

View File

@@ -115,7 +115,9 @@ def displayhook(value: Optional[int]) -> None: ...
def excepthook(type_: type, value: BaseException,
traceback: TracebackType) -> None: ...
def exc_info() -> Tuple[type, BaseException, TracebackType]: ...
def exit(arg: Union[int, str] = ...) -> None: ...
# sys.exit() accepts an optional argument of anything printable
def exit(arg: Any = ...) -> None:
raise SystemExit()
def getcheckinterval() -> int: ... # deprecated
def getdefaultencoding() -> str: ...
def getdlopenflags() -> int: ... # Unix only