@@ -5769,6 +5769,56 @@ Test___init___impl(TestObj *self, PyObject *a, int group_right_1,
57695769/*[clinic end generated code: output=2bbb8ea60e8f57a6 input=10f5d0f1e8e466ef]*/
57705770
57715771
5772+ /*[clinic input]
5773+ only_optional_group
5774+ [
5775+ a: object
5776+ ]
5777+ /
5778+ The only parameter is in an optional group.
5779+ [clinic start generated code]*/
5780+
5781+ PyDoc_STRVAR (only_optional_group__doc__ ,
5782+ "only_optional_group ([a ])\n "
5783+ "The only parameter is in an optional group." );
5784+
5785+ #define ONLY_OPTIONAL_GROUP_METHODDEF \
5786+ {"only_optional_group", (PyCFunction)only_optional_group, METH_VARARGS, only_optional_group__doc__},
5787+
5788+ static PyObject *
5789+ only_optional_group_impl (PyObject * module , int group_right_1 , PyObject * a );
5790+
5791+ static PyObject *
5792+ only_optional_group (PyObject * module , PyObject * args )
5793+ {
5794+ PyObject * return_value = NULL ;
5795+ int group_right_1 = 0 ;
5796+ PyObject * a = NULL ;
5797+
5798+ switch (PyTuple_GET_SIZE (args )) {
5799+ case 0 :
5800+ break ;
5801+ case 1 :
5802+ if (!PyArg_ParseTuple (args , "O:only_optional_group" , & a )) {
5803+ goto exit ;
5804+ }
5805+ group_right_1 = 1 ;
5806+ break ;
5807+ default :
5808+ PyErr_SetString (PyExc_TypeError , "only_optional_group requires 0 to 1 arguments" );
5809+ goto exit ;
5810+ }
5811+ return_value = only_optional_group_impl (module , group_right_1 , a );
5812+
5813+ exit :
5814+ return return_value ;
5815+ }
5816+
5817+ static PyObject *
5818+ only_optional_group_impl (PyObject * module , int group_right_1 , PyObject * a )
5819+ /*[clinic end generated code: output=e7546b9441793d7d input=426c64055af7bcab]*/
5820+
5821+
57725822/*[clinic input]
57735823group_and_optional_parameter
57745824 [
0 commit comments