File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,11 @@ def __displayhook__(value: int) -> None: ...
108
108
def __excepthook__ (type_ : type , value : BaseException , traceback : TracebackType ) -> None : ...
109
109
def exc_clear () -> None :
110
110
raise DeprecationWarning ()
111
- def exc_info () -> Tuple [type , BaseException , TracebackType ]: ...
111
+ # TODO should be a union of tuple, see mypy#1178
112
+ def exc_info () -> Tuple [Optional [type ],
113
+ Optional [BaseException ],
114
+ Optional [TracebackType ]]: ...
115
+
112
116
# sys.exit() accepts an optional argument of anything printable
113
117
def exit (arg : Any = ...) -> None :
114
118
raise SystemExit ()
Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ def _current_frames() -> Dict[int, Any]: ...
117
117
def displayhook (value : Optional [int ]) -> None : ...
118
118
def excepthook (type_ : type , value : BaseException ,
119
119
traceback : TracebackType ) -> None : ...
120
- def exc_info () -> Tuple [type , BaseException , TracebackType ]: ...
120
+ # TODO should be a union of tuple, see mypy#1178
121
+ def exc_info () -> Tuple [Optional [type ],
122
+ Optional [BaseException ],
123
+ Optional [TracebackType ]]: ...
121
124
# sys.exit() accepts an optional argument of anything printable
122
125
def exit (arg : Any = ...) -> None :
123
126
raise SystemExit ()
You can’t perform that action at this time.
0 commit comments