diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-09-29 22:05:45 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-09-29 22:07:41 +0300 |
commit | 4c3047a9cdff686411077b1ccd5709eb221bf41a (patch) | |
tree | 65659ed3db866b6227332fe12bdc3f360635b1f9 /source/blender/python/mathutils/mathutils_Matrix.c | |
parent | ebf752625e3cdd261abd3a737d18d477df6f4379 (diff) |
API Docs: Use raises field list syntax
See
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Matrix.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index c158ec1da15..427fcad5155 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -1687,7 +1687,7 @@ PyDoc_STRVAR( "\n" " Set the matrix to its adjugate.\n" "\n" - " .. note:: When the matrix cannot be adjugated a :exc:`ValueError` exception is raised.\n" + " :raises ValueError: if the matrix cannot be adjugate.\n" "\n" " .. seealso:: `Adjugate matrix <https://en.wikipedia.org/wiki/Adjugate_matrix>`__ on " "Wikipedia.\n"); @@ -1726,8 +1726,7 @@ PyDoc_STRVAR( "\n" " :return: the adjugated matrix.\n" " :rtype: :class:`Matrix`\n" - "\n" - " .. note:: When the matrix cant be adjugated a :exc:`ValueError` exception is raised.\n"); + " :raises ValueError: if the matrix cannot be adjugated\n"); static PyObject *Matrix_adjugated(MatrixObject *self) { return matrix__apply_to_copy(Matrix_adjugate, self); |