summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_collectionsmodule.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/clinic/_collectionsmodule.c.h')
-rw-r--r--Modules/clinic/_collectionsmodule.c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/clinic/_collectionsmodule.c.h b/Modules/clinic/_collectionsmodule.c.h
index 7e18aeb..2875b3c 100644
--- a/Modules/clinic/_collectionsmodule.c.h
+++ b/Modules/clinic/_collectionsmodule.c.h
@@ -43,7 +43,8 @@ tuplegetter_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
Py_ssize_t index;
PyObject *doc;
- if ((type == &tuplegetter_type) &&
+ if ((type == &tuplegetter_type ||
+ type->tp_init == tuplegetter_type.tp_init) &&
!_PyArg_NoKeywords("_tuplegetter", kwargs)) {
goto exit;
}
@@ -68,4 +69,4 @@ tuplegetter_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
-/*[clinic end generated code: output=947186d369f50f1e input=a9049054013a1b77]*/
+/*[clinic end generated code: output=3dfa12a35e655844 input=a9049054013a1b77]*/