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.
threading.__excepthook__
1 parent c453da9 commit 70fee29Copy full SHA for 70fee29
stdlib/threading.pyi
@@ -1,6 +1,6 @@
1
import _thread
2
import sys
3
-from _thread import _excepthook, _ExceptHookArgs, get_native_id as get_native_id
+from _thread import _ExceptHookArgs, get_native_id as get_native_id
4
from _typeshed import ProfileFunction, TraceFunction
5
from collections.abc import Callable, Iterable, Mapping
6
from contextvars import ContextVar
@@ -169,7 +169,9 @@ class Event:
169
def clear(self) -> None: ...
170
def wait(self, timeout: float | None = None) -> bool: ...
171
172
-excepthook = _excepthook
+excepthook: Callable[[_ExceptHookArgs], object]
173
+if sys.version_info >= (3, 10):
174
+ __excepthook__: Callable[[_ExceptHookArgs], object]
175
ExceptHookArgs = _ExceptHookArgs
176
177
class Timer(Thread):
0 commit comments