mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Improve traceback (#465)
This commit is contained in:
committed by
Guido van Rossum
parent
231ebbefaa
commit
4e55f0561f
@@ -5,7 +5,7 @@
|
||||
|
||||
from typing import (
|
||||
List, Sequence, Any, Dict, Tuple, TextIO, overload, Optional, Union,
|
||||
TypeVar, Callable
|
||||
TypeVar, Callable, Type,
|
||||
)
|
||||
from types import TracebackType
|
||||
|
||||
@@ -118,7 +118,7 @@ def displayhook(value: Optional[int]) -> None: ...
|
||||
def excepthook(type_: type, value: BaseException,
|
||||
traceback: TracebackType) -> None: ...
|
||||
# TODO should be a union of tuple, see mypy#1178
|
||||
def exc_info() -> Tuple[Optional[type],
|
||||
def exc_info() -> Tuple[Optional[Type[BaseException]],
|
||||
Optional[BaseException],
|
||||
Optional[TracebackType]]: ...
|
||||
# sys.exit() accepts an optional argument of anything printable
|
||||
|
||||
Reference in New Issue
Block a user