From 686e40f79c8cb9629d4f527d292454f5eb18f050 Mon Sep 17 00:00:00 2001 From: Bhuvansh Date: Sun, 2 Aug 2026 11:27:06 +0000 Subject: [PATCH] [3.15] gh-155052: Fix docstring of decimal.Context.copy (GH-155062) (cherry picked from commit 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9) Co-authored-by: Bhuvansh --- Modules/_decimal/_decimal.c | 4 ++-- Modules/_decimal/clinic/_decimal.c.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 8f3c9694db247da..01caedee08a8eb2 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -1690,12 +1690,12 @@ _decimal.Context.copy cls: defining_class -Return a duplicate of the context with all flags cleared. +Return a duplicate of the context. [clinic start generated code]*/ static PyObject * _decimal_Context_copy_impl(PyObject *self, PyTypeObject *cls) -/*[clinic end generated code: output=31c9c8eeb0c0cf77 input=aef1c0bddabdf8f0]*/ +/*[clinic end generated code: output=31c9c8eeb0c0cf77 input=87f8b92b1c7462a5]*/ { decimal_state *state = PyType_GetModuleState(cls); diff --git a/Modules/_decimal/clinic/_decimal.c.h b/Modules/_decimal/clinic/_decimal.c.h index c803006ad443825..0fc6c5ab7ffb73c 100644 --- a/Modules/_decimal/clinic/_decimal.c.h +++ b/Modules/_decimal/clinic/_decimal.c.h @@ -371,7 +371,7 @@ PyDoc_STRVAR(_decimal_Context_copy__doc__, "copy($self, /)\n" "--\n" "\n" -"Return a duplicate of the context with all flags cleared."); +"Return a duplicate of the context."); #define _DECIMAL_CONTEXT_COPY_METHODDEF \ {"copy", _PyCFunction_CAST(_decimal_Context_copy), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _decimal_Context_copy__doc__}, @@ -6984,4 +6984,4 @@ _decimal_Context_same_quantum(PyObject *context, PyTypeObject *cls, PyObject *co #ifndef _DECIMAL_CONTEXT_APPLY_METHODDEF #define _DECIMAL_CONTEXT_APPLY_METHODDEF #endif /* !defined(_DECIMAL_CONTEXT_APPLY_METHODDEF) */ -/*[clinic end generated code: output=0eb835634388294e input=a9049054013a1b77]*/ +/*[clinic end generated code: output=72f619bdb52660d6 input=a9049054013a1b77]*/