mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add exception globals in 2.7/sys.pyi. (#440)
This commit is contained in:
committed by
Guido van Rossum
parent
e3a1ddfbeb
commit
6c1a185e49
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user