Skip to content

Commit 94e926f

Browse files
authored
Add threading.__excepthook__
1 parent 191fa40 commit 94e926f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/threading.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ class Event:
170170
def wait(self, timeout: float | None = None) -> bool: ...
171171

172172
excepthook = _excepthook
173+
if sys.version_info >= (3, 10):
174+
__excepthook__ = _excepthook
173175
ExceptHookArgs = _ExceptHookArgs
174176

175177
class Timer(Thread):

0 commit comments

Comments
 (0)