diff options
Diffstat (limited to 'Modules/clinic/_queuemodule.c.h')
-rw-r--r-- | Modules/clinic/_queuemodule.c.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/clinic/_queuemodule.c.h b/Modules/clinic/_queuemodule.c.h index 8741f7d..d952256 100644 --- a/Modules/clinic/_queuemodule.c.h +++ b/Modules/clinic/_queuemodule.c.h @@ -16,11 +16,13 @@ simplequeue_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { PyObject *return_value = NULL; - if ((type == simplequeue_get_state_by_type(type)->SimpleQueueType) && + if ((type == simplequeue_get_state_by_type(type)->SimpleQueueType || + type->tp_init == simplequeue_get_state_by_type(type)->SimpleQueueType->tp_init) && !_PyArg_NoPositional("SimpleQueue", args)) { goto exit; } - if ((type == simplequeue_get_state_by_type(type)->SimpleQueueType) && + if ((type == simplequeue_get_state_by_type(type)->SimpleQueueType || + type->tp_init == simplequeue_get_state_by_type(type)->SimpleQueueType->tp_init) && !_PyArg_NoKeywords("SimpleQueue", kwargs)) { goto exit; } @@ -246,4 +248,4 @@ _queue_SimpleQueue_qsize(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) exit: return return_value; } -/*[clinic end generated code: output=ce56b46fac150909 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=96cc57168d72aab1 input=a9049054013a1b77]*/ |