Cleanup: force wrapping all uses of PyDoc_STRVAR

Without this, minor edits can re-indent the whole doc-string at a
different level, causing diffs to be unnecessary noisy.
This commit is contained in:
Campbell Barton
2024-01-25 10:22:16 +11:00
parent 0ea0573349
commit 7436b578dd
213 changed files with 8505 additions and 6231 deletions

View File

@@ -50,7 +50,9 @@ int UnaryFunction1DUnsigned_Init(PyObject *module)
//------------------------INSTANCE METHODS ----------------------------------
static char UnaryFunction1DUnsigned___doc__[] =
PyDoc_STRVAR(
/* Wrap. */
UnaryFunction1DUnsigned___doc__,
"Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DUnsigned`\n"
"\n"
"Base class for unary functions (functors) that work on\n"
@@ -63,7 +65,7 @@ static char UnaryFunction1DUnsigned___doc__[] =
" or the integration method given as an argument.\n"
"\n"
" :arg integration_type: An integration method.\n"
" :type integration_type: :class:`IntegrationType`\n";
" :type integration_type: :class:`IntegrationType`\n");
static int UnaryFunction1DUnsigned___init__(BPy_UnaryFunction1DUnsigned *self,
PyObject *args,
@@ -129,10 +131,12 @@ static PyObject *UnaryFunction1DUnsigned___call__(BPy_UnaryFunction1DUnsigned *s
/*----------------------UnaryFunction1DUnsigned get/setters ----------------------------*/
PyDoc_STRVAR(integration_type_doc,
"The integration method.\n"
"\n"
":type: :class:`IntegrationType`");
PyDoc_STRVAR(
/* Wrap. */
integration_type_doc,
"The integration method.\n"
"\n"
":type: :class:`IntegrationType`");
static PyObject *integration_type_get(BPy_UnaryFunction1DUnsigned *self, void * /*closure*/)
{