From f20bea78e6c782632264ca7661a125b852dff7e2 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 3 Feb 2024 08:43:38 +0300 Subject: [PATCH 1/2] gh-114949: fix signature in the type.__prepare__() doc string --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index a850473cad813d..599139a1fcbde5 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5259,7 +5259,7 @@ static PyMethodDef type_methods[] = { TYPE___SUBCLASSES___METHODDEF {"__prepare__", _PyCFunction_CAST(type_prepare), METH_FASTCALL | METH_KEYWORDS | METH_CLASS, - PyDoc_STR("__prepare__($cls, name, bases, /, **kwds)\n" + PyDoc_STR("__prepare__($type, name, bases, /, **kwds)\n" "--\n" "\n" "Create the namespace for the class statement")}, From 92545971eaac35341d137ca725e515b40991de83 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 4 Mar 2024 09:24:27 +0300 Subject: [PATCH 2/2] Add news --- .../2024-03-04-09-24-23.gh-issue-114950.3c7uIY.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2024-03-04-09-24-23.gh-issue-114950.3c7uIY.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-03-04-09-24-23.gh-issue-114950.3c7uIY.rst b/Misc/NEWS.d/next/Core and Builtins/2024-03-04-09-24-23.gh-issue-114950.3c7uIY.rst new file mode 100644 index 00000000000000..be99ecfbdbf2a7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-03-04-09-24-23.gh-issue-114950.3c7uIY.rst @@ -0,0 +1 @@ +Fix typo in signature description of type.__prepare__().