diff options
Diffstat (limited to 'Objects/clinic/tupleobject.c.h')
-rw-r--r-- | Objects/clinic/tupleobject.c.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/clinic/tupleobject.c.h b/Objects/clinic/tupleobject.c.h index fe2fae4..f65e5fa 100644 --- a/Objects/clinic/tupleobject.c.h +++ b/Objects/clinic/tupleobject.c.h @@ -77,7 +77,8 @@ tuple_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) PyObject *return_value = NULL; PyObject *iterable = NULL; - if ((type == &PyTuple_Type) && + if ((type == &PyTuple_Type || + type->tp_init == PyTuple_Type.tp_init) && !_PyArg_NoKeywords("tuple", kwargs)) { goto exit; } @@ -111,4 +112,4 @@ tuple___getnewargs__(PyTupleObject *self, PyObject *Py_UNUSED(ignored)) { return tuple___getnewargs___impl(self); } -/*[clinic end generated code: output=56fab9b7368aba49 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=72cc0bc4f7358116 input=a9049054013a1b77]*/ |