Skip to content

Commit 6c1a185

Browse files
fyquahgvanrossum
authored andcommitted
Add exception globals in 2.7/sys.pyi. (#440)
1 parent e3a1ddf commit 6c1a185

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/2.7/sys.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import (
44
IO, Union, List, Sequence, Any, Dict, Tuple, BinaryIO, Optional, Callable, overload
55
)
6-
from types import FrameType, ModuleType, TracebackType
6+
from types import FrameType, ModuleType, TracebackType, ClassType
77

88
class _flags:
99
bytes_warning = ... # type: int
@@ -86,6 +86,9 @@ path_hooks = ... # type: List[Any]
8686
path_importer_cache = ... # type: Dict[str, Any]
8787
displayhook = ... # type: Optional[Callable[[int], None]]
8888
excepthook = ... # type: Optional[Callable[[type, BaseException, TracebackType], None]]
89+
exc_type = ... # type: Optional[type]
90+
exc_value = ... # type: Union[BaseException, ClassType]
91+
exc_traceback = ... # type: TracebackType
8992

9093
class _WindowsVersionType:
9194
major = ... # type: Any

0 commit comments

Comments
 (0)