Fix return types in docs for matrix.zero, quat's .negate and .identity #118003

Closed
Andrej wants to merge 1 commits from Andrej730:fix_mathutils_docs into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 3 additions and 9 deletions

View File

@ -2172,9 +2172,7 @@ PyDoc_STRVAR(
Matrix_zero_doc,
".. method:: zero()\n"
"\n"
" Set all the matrix values to zero.\n"
"\n"
" :rtype: :class:`Matrix`\n");
" Set all the matrix values to zero.\n");
static PyObject *Matrix_zero(MatrixObject *self)
{
if (BaseMath_Prepare_ForWrite(self) == -1) {

View File

@ -706,9 +706,7 @@ PyDoc_STRVAR(
Quaternion_identity_doc,
".. function:: identity()\n"
"\n"
" Set the quaternion to an identity quaternion.\n"
"\n"
" :rtype: :class:`Quaternion`\n");
" Set the quaternion to an identity quaternion.\n");
static PyObject *Quaternion_identity(QuaternionObject *self)
{
if (BaseMath_ReadCallback_ForWrite(self) == -1) {
@ -732,9 +730,7 @@ PyDoc_STRVAR(
Quaternion_negate_doc,
".. function:: negate()\n"
"\n"
" Set the quaternion to its negative.\n"
"\n"
" :rtype: :class:`Quaternion`\n");
" Set the quaternion to its negative.\n");
static PyObject *Quaternion_negate(QuaternionObject *self)
{
if (BaseMath_ReadCallback_ForWrite(self) == -1) {