PyDoc: correct types, consistent formatting for doc-strings in C++

Correct some types, ensure multi-line docs end with a newline,
sentences end with a full stop.
This commit is contained in:
Campbell Barton
2025-08-22 14:05:28 +10:00
parent e41fdebf3a
commit 78c9d16919
191 changed files with 484 additions and 864 deletions

View File

@@ -802,7 +802,7 @@ PyDoc_STRVAR(
pygpu_shader_name_doc,
"The name of the shader object for debugging purposes (read-only).\n"
"\n"
":type: str");
":type: str\n");
static PyObject *pygpu_shader_name(BPyGPUShader *self, void * /*closure*/)
{
return PyUnicode_FromString(GPU_shader_get_name(self->shader));
@@ -814,7 +814,7 @@ PyDoc_STRVAR(
"The name of the program object for use by the OpenGL API (read-only).\n"
"This is deprecated and will always return -1.\n"
"\n"
":type: int");
":type: int\n");
static PyObject *pygpu_shader_program_get(BPyGPUShader * /*self*/, void * /*closure*/)
{
PyErr_WarnEx(