mirror of https://github.com/python/cpython
Add missing `PyDoc_STR` calls (#109393)
In files: * Modules/_ctypes/cfield.c * Modules/_struct.c * Objects/dictobject.c * Objects/typevarobject.c * Objects/unionobject.c
This commit is contained in:
parent
5eec58a9e5
commit
47af188593
|
@ -250,8 +250,8 @@ PyCField_get_size(PyObject *self, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyGetSetDef PyCField_getset[] = {
|
static PyGetSetDef PyCField_getset[] = {
|
||||||
{ "offset", PyCField_get_offset, NULL, "offset in bytes of this field" },
|
{ "offset", PyCField_get_offset, NULL, PyDoc_STR("offset in bytes of this field") },
|
||||||
{ "size", PyCField_get_size, NULL, "size in bytes of this field" },
|
{ "size", PyCField_get_size, NULL, PyDoc_STR("size in bytes of this field") },
|
||||||
{ NULL, NULL, NULL, NULL },
|
{ NULL, NULL, NULL, NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2198,8 +2198,8 @@ static PyMemberDef s_members[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyGetSetDef s_getsetlist[] = {
|
static PyGetSetDef s_getsetlist[] = {
|
||||||
{"format", (getter)s_get_format, (setter)NULL, "struct format string", NULL},
|
{"format", (getter)s_get_format, (setter)NULL, PyDoc_STR("struct format string"), NULL},
|
||||||
{"size", (getter)s_get_size, (setter)NULL, "struct size in bytes", NULL},
|
{"size", (getter)s_get_size, (setter)NULL, PyDoc_STR("struct size in bytes"), NULL},
|
||||||
{NULL} /* sentinel */
|
{NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4643,7 +4643,7 @@ dictview_mapping(PyObject *view, void *Py_UNUSED(ignored)) {
|
||||||
|
|
||||||
static PyGetSetDef dictview_getset[] = {
|
static PyGetSetDef dictview_getset[] = {
|
||||||
{"mapping", dictview_mapping, (setter)NULL,
|
{"mapping", dictview_mapping, (setter)NULL,
|
||||||
"dictionary that this view refers to", NULL},
|
PyDoc_STR("dictionary that this view refers to"), NULL},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -806,8 +806,8 @@ paramspec_kwargs(PyObject *self, void *unused)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyGetSetDef paramspec_getset[] = {
|
static PyGetSetDef paramspec_getset[] = {
|
||||||
{"args", (getter)paramspec_args, NULL, "Represents positional arguments.", NULL},
|
{"args", (getter)paramspec_args, NULL, PyDoc_STR("Represents positional arguments."), NULL},
|
||||||
{"kwargs", (getter)paramspec_kwargs, NULL, "Represents keyword arguments.", NULL},
|
{"kwargs", (getter)paramspec_kwargs, NULL, PyDoc_STR("Represents keyword arguments."), NULL},
|
||||||
{0},
|
{0},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,8 @@ union_parameters(PyObject *self, void *Py_UNUSED(unused))
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyGetSetDef union_properties[] = {
|
static PyGetSetDef union_properties[] = {
|
||||||
{"__parameters__", union_parameters, (setter)NULL, "Type variables in the types.UnionType.", NULL},
|
{"__parameters__", union_parameters, (setter)NULL,
|
||||||
|
PyDoc_STR("Type variables in the types.UnionType."), NULL},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue