We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6d5e2 commit fbcd256Copy full SHA for fbcd256
libtmux/_compat.py
@@ -1,5 +1,6 @@
1
# flake8: NOQA
2
import sys
3
+import types
4
import typing as t
5
6
console_encoding = sys.__stdout__.encoding
@@ -14,7 +15,12 @@ def console_to_str(s: bytes) -> str:
14
15
16
17
# TODO Consider removing, reraise does not seem to be called anywhere
-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
+
24
if value.__traceback__ is not tb:
25
raise (value.with_traceback(tb))
26
raise value
0 commit comments