[3.14] gh-136549: Fix signature of threading.excepthook() (GH-136559) (GH-136589)

(cherry picked from commit be2c3d284e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-07-12 18:18:23 +02:00 committed by GitHub
parent d5866a8e84
commit 64df22c190
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

@ -2317,7 +2317,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.");