diff options
Diffstat (limited to 'Objects/clinic/floatobject.c.h')
-rw-r--r-- | Objects/clinic/floatobject.c.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/clinic/floatobject.c.h b/Objects/clinic/floatobject.c.h index 5643f0e..88dc482 100644 --- a/Objects/clinic/floatobject.c.h +++ b/Objects/clinic/floatobject.c.h @@ -208,7 +208,8 @@ float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) PyObject *return_value = NULL; PyObject *x = NULL; - if ((type == &PyFloat_Type) && + if ((type == &PyFloat_Type || + type->tp_init == PyFloat_Type.tp_init) && !_PyArg_NoKeywords("float", kwargs)) { goto exit; } @@ -387,4 +388,4 @@ float___format__(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=bb079c3e130e4ce6 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=122a73f4c9d25806 input=a9049054013a1b77]*/ |