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:
+10
-6
@@ -64,7 +64,9 @@ int UnaryFunction1DVectorViewShape_Init(PyObject *module)
|
||||
|
||||
//------------------------INSTANCE METHODS ----------------------------------
|
||||
|
||||
static char UnaryFunction1DVectorViewShape___doc__[] =
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryFunction1DVectorViewShape___doc__,
|
||||
"Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DVectorViewShape`\n"
|
||||
"\n"
|
||||
"Base class for unary functions (functors) that work on\n"
|
||||
@@ -78,7 +80,7 @@ static char UnaryFunction1DVectorViewShape___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 UnaryFunction1DVectorViewShape___init__(BPy_UnaryFunction1DVectorViewShape *self,
|
||||
PyObject *args,
|
||||
@@ -153,10 +155,12 @@ static PyObject *UnaryFunction1DVectorViewShape___call__(BPy_UnaryFunction1DVect
|
||||
|
||||
/*----------------------UnaryFunction1DVectorViewShape 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_UnaryFunction1DVectorViewShape *self, void * /*closure*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user