Skip to content

Commit 7888281

Browse files
committed
1squash reraise
1 parent 5d9838c commit 7888281

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libtmux/_compat.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# flake8: NOQA
22
import sys
3+
import types
34
import typing as t
45

56
console_encoding = sys.__stdout__.encoding
@@ -14,7 +15,12 @@ def console_to_str(s: bytes) -> str:
1415

1516

1617
# TODO Consider removing, reraise does not seem to be called anywhere
17-
def reraise(tp, value, tb=None):
18+
def reraise(
19+
tp: t.Type[BaseException],
20+
value: BaseException,
21+
tb: types.TracebackType,
22+
) -> t.NoReturn:
23+
1824
if value.__traceback__ is not tb:
1925
raise (value.with_traceback(tb))
2026
raise value

0 commit comments

Comments
 (0)