gh-136549: Fix signature of threading.excepthook() (GH-136559)

This commit is contained in:
Serhiy Storchaka 2025-07-12 18:54:26 +03:00 committed by GitHub
parent 5e1e21dee3
commit be2c3d284e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -5916,6 +5916,7 @@ def test_sysconfig_module_has_signatures(self):
def test_threading_module_has_signatures(self):
import threading
self._test_module_has_signatures(threading)
self.assertIsNotNone(inspect.signature(threading.__excepthook__))
def test_thread_module_has_signatures(self):
import _thread

View file

@ -0,0 +1 @@
Fix signature of :func:`threading.excepthook`.

View file

@ -2330,7 +2330,7 @@ thread_excepthook(PyObject *module, PyObject *args)
}
PyDoc_STRVAR(excepthook_doc,
"_excepthook($module, (exc_type, exc_value, exc_traceback, thread), /)\n\
"_excepthook($module, args, /)\n\
--\n\
\n\
Handle uncaught Thread.run() exception.");