API Docs: Use raises field list syntax

See 
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#info-field-lists
This commit is contained in:
2020-09-29 15:05:45 -04:00
parent ebf752625e
commit 4c3047a9cd
3 changed files with 13 additions and 18 deletions

View File

@@ -8708,11 +8708,8 @@ PyDoc_STRVAR(pyrna_register_class_doc,
" If the class has a *register* class method it will be called\n"
" before registration.\n"
"\n"
" .. note::\n"
"\n"
" :exc:`ValueError` exception is raised if the class is not a\n"
" subclass of a registerable blender class.\n"
"\n");
" :raises ValueError:\n"
" if the class is not a subclass of a registerable blender class.\n");
PyMethodDef meth_bpy_register_class = {
"register_class", pyrna_register_class, METH_O, pyrna_register_class_doc};
static PyObject *pyrna_register_class(PyObject *UNUSED(self), PyObject *py_class)