@@ -66,42 +66,42 @@ test_with_docstring(PyObject *self, PyObject *Py_UNUSED(ignored))
66
66
67
67
static PyMethodDef test_methods [] = {
68
68
{"docstring_empty" ,
69
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
69
+ test_with_docstring , METH_VARARGS ,
70
70
docstring_empty },
71
71
{"docstring_no_signature" ,
72
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
72
+ test_with_docstring , METH_VARARGS ,
73
73
docstring_no_signature },
74
74
{"docstring_no_signature_noargs" ,
75
- ( PyCFunction ) test_with_docstring , METH_NOARGS ,
75
+ test_with_docstring , METH_NOARGS ,
76
76
docstring_no_signature },
77
77
{"docstring_no_signature_o" ,
78
- ( PyCFunction ) test_with_docstring , METH_O ,
78
+ test_with_docstring , METH_O ,
79
79
docstring_no_signature },
80
80
{"docstring_with_invalid_signature" ,
81
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
81
+ test_with_docstring , METH_VARARGS ,
82
82
docstring_with_invalid_signature },
83
83
{"docstring_with_invalid_signature2" ,
84
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
84
+ test_with_docstring , METH_VARARGS ,
85
85
docstring_with_invalid_signature2 },
86
86
{"docstring_with_signature" ,
87
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
87
+ test_with_docstring , METH_VARARGS ,
88
88
docstring_with_signature },
89
89
{"docstring_with_signature_and_extra_newlines" ,
90
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
90
+ test_with_docstring , METH_VARARGS ,
91
91
docstring_with_signature_and_extra_newlines },
92
92
{"docstring_with_signature_but_no_doc" ,
93
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
93
+ test_with_docstring , METH_VARARGS ,
94
94
docstring_with_signature_but_no_doc },
95
95
{"docstring_with_signature_with_defaults" ,
96
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
96
+ test_with_docstring , METH_VARARGS ,
97
97
docstring_with_signature_with_defaults },
98
98
{"no_docstring" ,
99
- ( PyCFunction ) test_with_docstring , METH_VARARGS },
99
+ test_with_docstring , METH_VARARGS },
100
100
{"test_with_docstring" ,
101
101
test_with_docstring , METH_VARARGS ,
102
102
PyDoc_STR ("This is a pretty normal docstring." )},
103
103
{"func_with_unrepresentable_signature" ,
104
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
104
+ test_with_docstring , METH_VARARGS ,
105
105
PyDoc_STR (
106
106
"func_with_unrepresentable_signature($module, /, a, b=<x>)\n"
107
107
"--\n\n"
@@ -112,28 +112,28 @@ static PyMethodDef test_methods[] = {
112
112
113
113
static PyMethodDef DocStringNoSignatureTest_methods [] = {
114
114
{"meth_noargs" ,
115
- ( PyCFunction ) test_with_docstring , METH_NOARGS ,
115
+ test_with_docstring , METH_NOARGS ,
116
116
docstring_no_signature },
117
117
{"meth_o" ,
118
- ( PyCFunction ) test_with_docstring , METH_O ,
118
+ test_with_docstring , METH_O ,
119
119
docstring_no_signature },
120
120
{"meth_noargs_class" ,
121
- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_CLASS ,
121
+ test_with_docstring , METH_NOARGS |METH_CLASS ,
122
122
docstring_no_signature },
123
123
{"meth_o_class" ,
124
- ( PyCFunction ) test_with_docstring , METH_O |METH_CLASS ,
124
+ test_with_docstring , METH_O |METH_CLASS ,
125
125
docstring_no_signature },
126
126
{"meth_noargs_static" ,
127
- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_STATIC ,
127
+ test_with_docstring , METH_NOARGS |METH_STATIC ,
128
128
docstring_no_signature },
129
129
{"meth_o_static" ,
130
- ( PyCFunction ) test_with_docstring , METH_O |METH_STATIC ,
130
+ test_with_docstring , METH_O |METH_STATIC ,
131
131
docstring_no_signature },
132
132
{"meth_noargs_coexist" ,
133
- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_COEXIST ,
133
+ test_with_docstring , METH_NOARGS |METH_COEXIST ,
134
134
docstring_no_signature },
135
135
{"meth_o_coexist" ,
136
- ( PyCFunction ) test_with_docstring , METH_O |METH_COEXIST ,
136
+ test_with_docstring , METH_O |METH_COEXIST ,
137
137
docstring_no_signature },
138
138
{NULL },
139
139
};
@@ -149,28 +149,28 @@ static PyTypeObject DocStringNoSignatureTest = {
149
149
150
150
static PyMethodDef DocStringUnrepresentableSignatureTest_methods [] = {
151
151
{"meth" ,
152
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
152
+ test_with_docstring , METH_VARARGS ,
153
153
PyDoc_STR (
154
154
"meth($self, /, a, b=<x>)\n"
155
155
"--\n\n"
156
156
"This docstring has a signature with unrepresentable default."
157
157
)},
158
158
{"classmeth" ,
159
- ( PyCFunction ) test_with_docstring , METH_VARARGS |METH_CLASS ,
159
+ test_with_docstring , METH_VARARGS |METH_CLASS ,
160
160
PyDoc_STR (
161
161
"classmeth($type, /, a, b=<x>)\n"
162
162
"--\n\n"
163
163
"This docstring has a signature with unrepresentable default."
164
164
)},
165
165
{"staticmeth" ,
166
- ( PyCFunction ) test_with_docstring , METH_VARARGS |METH_STATIC ,
166
+ test_with_docstring , METH_VARARGS |METH_STATIC ,
167
167
PyDoc_STR (
168
168
"staticmeth(a, b=<x>)\n"
169
169
"--\n\n"
170
170
"This docstring has a signature with unrepresentable default."
171
171
)},
172
172
{"with_default" ,
173
- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
173
+ test_with_docstring , METH_VARARGS ,
174
174
PyDoc_STR (
175
175
"with_default($self, /, x=ONE)\n"
176
176
"--\n\n"
0 commit comments