mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
threading: properly export excepthook, ExceptHookArgs (#4797)
An `import X as Y` where X != Y no longer exports, so
27a45df479 caused them to be un-exported.
This commit is contained in:
@@ -155,7 +155,10 @@ class Event:
|
||||
def wait(self, timeout: Optional[float] = ...) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from _thread import _excepthook as excepthook, _ExceptHookArgs as ExceptHookArgs
|
||||
from _thread import _excepthook, _ExceptHookArgs
|
||||
|
||||
excepthook = _excepthook
|
||||
ExceptHookArgs = _ExceptHookArgs
|
||||
|
||||
class Timer(Thread):
|
||||
if sys.version_info >= (3,):
|
||||
|
||||
@@ -155,7 +155,10 @@ class Event:
|
||||
def wait(self, timeout: Optional[float] = ...) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from _thread import _excepthook as excepthook, _ExceptHookArgs as ExceptHookArgs
|
||||
from _thread import _excepthook, _ExceptHookArgs
|
||||
|
||||
excepthook = _excepthook
|
||||
ExceptHookArgs = _ExceptHookArgs
|
||||
|
||||
class Timer(Thread):
|
||||
if sys.version_info >= (3,):
|
||||
|
||||
Reference in New Issue
Block a user