@@ -66,42 +66,42 @@ test_with_docstring(PyObject *self, PyObject *Py_UNUSED(ignored))
6666
6767static PyMethodDef test_methods [] = {
6868 {"docstring_empty" ,
69- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
69+ test_with_docstring , METH_VARARGS ,
7070 docstring_empty },
7171 {"docstring_no_signature" ,
72- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
72+ test_with_docstring , METH_VARARGS ,
7373 docstring_no_signature },
7474 {"docstring_no_signature_noargs" ,
75- ( PyCFunction ) test_with_docstring , METH_NOARGS ,
75+ test_with_docstring , METH_NOARGS ,
7676 docstring_no_signature },
7777 {"docstring_no_signature_o" ,
78- ( PyCFunction ) test_with_docstring , METH_O ,
78+ test_with_docstring , METH_O ,
7979 docstring_no_signature },
8080 {"docstring_with_invalid_signature" ,
81- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
81+ test_with_docstring , METH_VARARGS ,
8282 docstring_with_invalid_signature },
8383 {"docstring_with_invalid_signature2" ,
84- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
84+ test_with_docstring , METH_VARARGS ,
8585 docstring_with_invalid_signature2 },
8686 {"docstring_with_signature" ,
87- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
87+ test_with_docstring , METH_VARARGS ,
8888 docstring_with_signature },
8989 {"docstring_with_signature_and_extra_newlines" ,
90- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
90+ test_with_docstring , METH_VARARGS ,
9191 docstring_with_signature_and_extra_newlines },
9292 {"docstring_with_signature_but_no_doc" ,
93- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
93+ test_with_docstring , METH_VARARGS ,
9494 docstring_with_signature_but_no_doc },
9595 {"docstring_with_signature_with_defaults" ,
96- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
96+ test_with_docstring , METH_VARARGS ,
9797 docstring_with_signature_with_defaults },
9898 {"no_docstring" ,
99- ( PyCFunction ) test_with_docstring , METH_VARARGS },
99+ test_with_docstring , METH_VARARGS },
100100 {"test_with_docstring" ,
101101 test_with_docstring , METH_VARARGS ,
102102 PyDoc_STR ("This is a pretty normal docstring." )},
103103 {"func_with_unrepresentable_signature" ,
104- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
104+ test_with_docstring , METH_VARARGS ,
105105 PyDoc_STR (
106106 "func_with_unrepresentable_signature($module, /, a, b=<x>)\n"
107107 "--\n\n"
@@ -112,28 +112,28 @@ static PyMethodDef test_methods[] = {
112112
113113static PyMethodDef DocStringNoSignatureTest_methods [] = {
114114 {"meth_noargs" ,
115- ( PyCFunction ) test_with_docstring , METH_NOARGS ,
115+ test_with_docstring , METH_NOARGS ,
116116 docstring_no_signature },
117117 {"meth_o" ,
118- ( PyCFunction ) test_with_docstring , METH_O ,
118+ test_with_docstring , METH_O ,
119119 docstring_no_signature },
120120 {"meth_noargs_class" ,
121- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_CLASS ,
121+ test_with_docstring , METH_NOARGS |METH_CLASS ,
122122 docstring_no_signature },
123123 {"meth_o_class" ,
124- ( PyCFunction ) test_with_docstring , METH_O |METH_CLASS ,
124+ test_with_docstring , METH_O |METH_CLASS ,
125125 docstring_no_signature },
126126 {"meth_noargs_static" ,
127- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_STATIC ,
127+ test_with_docstring , METH_NOARGS |METH_STATIC ,
128128 docstring_no_signature },
129129 {"meth_o_static" ,
130- ( PyCFunction ) test_with_docstring , METH_O |METH_STATIC ,
130+ test_with_docstring , METH_O |METH_STATIC ,
131131 docstring_no_signature },
132132 {"meth_noargs_coexist" ,
133- ( PyCFunction ) test_with_docstring , METH_NOARGS |METH_COEXIST ,
133+ test_with_docstring , METH_NOARGS |METH_COEXIST ,
134134 docstring_no_signature },
135135 {"meth_o_coexist" ,
136- ( PyCFunction ) test_with_docstring , METH_O |METH_COEXIST ,
136+ test_with_docstring , METH_O |METH_COEXIST ,
137137 docstring_no_signature },
138138 {NULL },
139139};
@@ -149,28 +149,28 @@ static PyTypeObject DocStringNoSignatureTest = {
149149
150150static PyMethodDef DocStringUnrepresentableSignatureTest_methods [] = {
151151 {"meth" ,
152- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
152+ test_with_docstring , <
8B92
span class="pl-c1">METH_VARARGS,
153153 PyDoc_STR (
154154 "meth($self, /, a, b=<x>)\n"
155155 "--\n\n"
156156 "This docstring has a signature with unrepresentable default."
157157 )},
158158 {"classmeth" ,
159- ( PyCFunction ) test_with_docstring , METH_VARARGS |METH_CLASS ,
159+ test_with_docstring , METH_VARARGS |METH_CLASS ,
160160 PyDoc_STR (
161161 "classmeth($type, /, a, b=<x>)\n"
162162 "--\n\n"
163163 "This docstring has a signature with unrepresentable default."
164164 )},
165165 {"staticmeth" ,
166- ( PyCFunction ) test_with_docstring , METH_VARARGS |METH_STATIC ,
166+ test_with_docstring , METH_VARARGS |METH_STATIC ,
167167 PyDoc_STR (
168168 "staticmeth(a, b=<x>)\n"
169169 "--\n\n"
170170 "This docstring has a signature with unrepresentable default."
171171 )},
172172 {"with_default" ,
173- ( PyCFunction ) test_with_docstring , METH_VARARGS ,
173+ test_with_docstring , METH_VARARGS ,
174174 PyDoc_STR (
175175 "with_default($self, /, x=ONE)\n"
176176 "--\n\n"
0 commit comments