mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
TracebackType is optional (#2202)
This commit is contained in:
committed by
Jelle Zijlstra
parent
8d852c3785
commit
84cafafe73
@@ -10,7 +10,7 @@ from types import TracebackType
|
||||
import sys
|
||||
import threading
|
||||
|
||||
_SysExcInfoType = Union[Tuple[type, BaseException, TracebackType],
|
||||
_SysExcInfoType = Union[Tuple[type, BaseException, Optional[TracebackType]],
|
||||
Tuple[None, None, None]]
|
||||
if sys.version_info >= (3, 5):
|
||||
_ExcInfoType = Union[None, bool, _SysExcInfoType, BaseException]
|
||||
|
||||
Reference in New Issue
Block a user