Skip to content

Commit c2a7454

Browse files
encukoupganssle
authored andcommitted
Add docstrings to _testcapi.Meth* classes
1 parent f57b0bd commit c2a7454

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/_testcapimodule.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6187,6 +6187,8 @@ static PyTypeObject MethInstance_Type = {
61876187
.tp_new = PyType_GenericNew,
61886188
.tp_flags = Py_TPFLAGS_DEFAULT,
61896189
.tp_methods = meth_instance_methods,
6190+
.tp_doc = PyDoc_STR(
6191+
"Class with normal (instance) methods to test calling conventions"),
61906192
};
61916193

61926194
static PyMethodDef meth_class_methods[] = {
@@ -6207,6 +6209,8 @@ static PyTypeObject MethClass_Type = {
62076209
.tp_new = PyType_GenericNew,
62086210
.tp_flags = Py_TPFLAGS_DEFAULT,
62096211
.tp_methods = meth_class_methods,
6212+
.tp_doc = PyDoc_STR(
6213+
"Class with class methods to test calling conventions"),
62106214
};
62116215

62126216
static PyMethodDef meth_static_methods[] = {
@@ -6227,6 +6231,8 @@ static PyTypeObject MethStatic_Type = {
62276231
.tp_new = PyType_GenericNew,
62286232
.tp_flags = Py_TPFLAGS_DEFAULT,
62296233
.tp_methods = meth_static_methods,
6234+
.tp_doc = PyDoc_STR(
6235+
"Class with static methods to test calling conventions"),
62306236
};
62316237

62326238

0 commit comments

Comments
 (0)