diff --git a/Misc/NEWS.d/next/Library/2023-01-18-12-22-14.gh-issue-101123.ruRJm6.rst b/Misc/NEWS.d/next/Library/2023-01-18-12-22-14.gh-issue-101123.ruRJm6.rst new file mode 100644 index 00000000000000..a4a46b52f233f6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-01-18-12-22-14.gh-issue-101123.ruRJm6.rst @@ -0,0 +1 @@ +Add signature for the :func:`~math.typot`. diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 1342162fa74be7..0e610eb9cb1977 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -2805,7 +2805,9 @@ math_hypot(PyObject *self, PyObject *const *args, Py_ssize_t nargs) #undef NUM_STACK_ELEMS PyDoc_STRVAR(math_hypot_doc, - "hypot(*coordinates) -> value\n\n\ + "hypot($module, *coordinates)\n\ +--\n\ +\n\ Multidimensional Euclidean distance from the origin to a point.\n\ \n\ Roughly equivalent to:\n\