Pydoc: Fix sphinx compile warnings about freestyle
Sphinx expects functions and methods with the same name and different parameters to be written using one directive. See: https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#basic-markup Unfortunately this makes giving different descriptions for each harder. This was already a request for better support for this in sphinx, see: https://github.com/sphinx-doc/sphinx/issues/7787 Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9170
This commit is contained in:
@@ -55,20 +55,14 @@ PyDoc_STRVAR(ViewShape_doc,
|
||||
"and :class:`ViewEdge`) that are issued from the same input shape.\n"
|
||||
"\n"
|
||||
".. method:: __init__()\n"
|
||||
" __init__(brother)\n"
|
||||
" __init__(sshape)\n"
|
||||
"\n"
|
||||
" Default constructor.\n"
|
||||
"\n"
|
||||
".. method:: __init__(brother)\n"
|
||||
"\n"
|
||||
" Copy constructor.\n"
|
||||
" Builds a :class:`ViewShape` using the default constructor,\n"
|
||||
" copy constructor, or from a :class:`SShape`.\n"
|
||||
"\n"
|
||||
" :arg brother: A ViewShape object.\n"
|
||||
" :type brother: :class:`ViewShape`\n"
|
||||
"\n"
|
||||
".. method:: __init__(sshape)\n"
|
||||
"\n"
|
||||
" Builds a ViewShape from an SShape.\n"
|
||||
"\n"
|
||||
" :arg sshape: An SShape object.\n"
|
||||
" :type sshape: :class:`SShape`");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user