Add exception globals in 2.7/sys.pyi. (#440)

This commit is contained in:
Fu Yong Quah
2016-08-05 12:04:57 -07:00
committed by Guido van Rossum
parent e3a1ddfbeb
commit 6c1a185e49

View File

@@ -3,7 +3,7 @@
from typing import (
IO, Union, List, Sequence, Any, Dict, Tuple, BinaryIO, Optional, Callable, overload
)
from types import FrameType, ModuleType, TracebackType
from types import FrameType, ModuleType, TracebackType, ClassType
class _flags:
bytes_warning = ... # type: int
@@ -86,6 +86,9 @@ path_hooks = ... # type: List[Any]
path_importer_cache = ... # type: Dict[str, Any]
displayhook = ... # type: Optional[Callable[[int], None]]
excepthook = ... # type: Optional[Callable[[type, BaseException, TracebackType], None]]
exc_type = ... # type: Optional[type]
exc_value = ... # type: Union[BaseException, ClassType]
exc_traceback = ... # type: TracebackType
class _WindowsVersionType:
major = ... # type: Any