@@ -1230,12 +1230,29 @@ depr_star_new_impl(PyTypeObject *type, PyObject *a)
12301230 return type -> tp_alloc (type , 0 );
12311231}
12321232
1233+ /*[clinic input]
1234+ _testclinic.DeprStarNew.cloned as depr_star_new_clone = _testclinic.DeprStarNew.__new__
1235+ [clinic start generated code]*/
1236+
1237+ static PyObject *
1238+ depr_star_new_clone_impl (PyObject * type , PyObject * a )
1239+ /*[clinic end generated code: output=3b17bf885fa736bc input=ea659285d5dbec6c]*/
1240+ {
1241+ Py_RETURN_NONE ;
1242+ }
1243+
1244+ static struct PyMethodDef depr_star_new_methods [] = {
1245+ DEPR_STAR_NEW_CLONE_METHODDEF
1246+ {NULL , NULL }
1247+ };
1248+
12331249static PyTypeObject DeprStarNew = {
12341250 PyVarObject_HEAD_INIT (NULL , 0 )
12351251 .tp_name = "_testclinic.DeprStarNew" ,
12361252 .tp_basicsize = sizeof (PyObject ),
12371253 .tp_new = depr_star_new ,
12381254 .tp_flags = Py_TPFLAGS_DEFAULT ,
1255+ .tp_methods = depr_star_new_methods ,
12391256};
12401257
12411258
@@ -1254,13 +1271,30 @@ depr_star_init_impl(PyObject *self, PyObject *a)
12541271 return 0 ;
12551272}
12561273
1274+ /*[clinic input]
1275+ _testclinic.DeprStarInit.cloned as depr_star_init_clone = _testclinic.DeprStarInit.__init__
1276+ [clinic start generated code]*/
1277+
1278+ static PyObject *
1279+ depr_star_init_clone_impl (PyObject * self , PyObject * a )
1280+ /*[clinic end generated code: output=ddfe8a1b5531e7cc input=561e103fe7f8e94f]*/
1281+ {
1282+ Py_RETURN_NONE ;
1283+ }
1284+
1285+ static struct PyMethodDef depr_star_init_methods [] = {
1286+ DEPR_STAR_INIT_CLONE_METHODDEF
1287+ {NULL , NULL }
1288+ };
1289+
12571290static PyTypeObject DeprStarInit = {
12581291 PyVarObject_HEAD_INIT (NULL , 0 )
12591292 .tp_name = "_testclinic.DeprStarInit" ,
12601293 .tp_basicsize = sizeof (PyObject ),
12611294 .tp_new = PyType_GenericNew ,
12621295 .tp_init = depr_star_init ,
12631296 .tp_flags = Py_TPFLAGS_DEFAULT ,
1297+ .tp_methods = depr_star_init_methods ,
12641298};
12651299
12661300
0 commit comments