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

@@ -109,7 +109,8 @@ def __excepthook__(type_: type, value: BaseException, traceback: TracebackType)
def exc_clear() -> None:
raise DeprecationWarning()
def exc_info() -> Tuple[type, BaseException, TracebackType]: ...
def exit(arg: int = ...) -> None:
# sys.exit() accepts an optional argument of anything printable
def exit(arg: Any = ...) -> None:
raise SystemExit()
def getcheckinterval() -> int: ... # deprecated
def getdefaultencoding() -> str: ...