Skip to content

Commit d6e1ba5

Browse files
cmaloneyclaude
andcommitted
Drop Argument Clinic @vectorcall for decimal.Decimal
Per review, change decimal in a separate PR. This reverts commit 1ce0827. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1ce0827 commit d6e1ba5

2 files changed

Lines changed: 6 additions & 49 deletions

File tree

‎Modules/_decimal/_decimal.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,7 +3314,6 @@ PyDec_FromObject(PyObject *v, PyObject *context)
33143314

33153315
/*[clinic input]
33163316
@classmethod
3317-
@vectorcall
33183317
_decimal.Decimal.__new__ as dec_new
33193318
33203319
value: object(c_default="NULL") = "0"
@@ -3330,7 +3329,7 @@ trap is active.
33303329

33313330
static PyObject *
33323331
dec_new_impl(PyTypeObject *type, PyObject *value, PyObject *context)
3333-
/*[clinic end generated code: output=35f48a40c65625ba input=dd1efa0c0ffe9416]*/
3332+
/*[clinic end generated code: output=35f48a40c65625ba input=5f8a0892d3fcef80]*/
33343333
{
33353334
decimal_state *state = get_module_state_by_def(type);
33363335
CONTEXT_CHECK_VA(state, context);
@@ -6191,7 +6190,6 @@ static PyType_Slot dec_slots[] = {
61916190
{Py_tp_methods, dec_methods},
61926191
{Py_tp_getset, dec_getsets},
61936192
{Py_tp_new, dec_new},
6194-
{Py_tp_vectorcall, dec_vectorcall},
61956193

61966194
// Number protocol
61976195
{Py_nb_add, nm_mpd_qadd},

‎Modules/_decimal/clinic/_decimal.c.h‎

Lines changed: 5 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)