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:
@@ -80,13 +80,10 @@ static char UnaryFunction1DVectorViewShape___doc__[] =
|
||||
"objects.\n"
|
||||
"\n"
|
||||
".. method:: __init__()\n"
|
||||
" __init__(integration_type)\n"
|
||||
"\n"
|
||||
" Default constructor.\n"
|
||||
"\n"
|
||||
".. method:: __init__(integration_type)\n"
|
||||
"\n"
|
||||
" Builds a unary 1D function using the integration method given as\n"
|
||||
" argument.\n"
|
||||
" Builds a unary 1D function using the default constructor\n"
|
||||
" or the integration method given as an argument.\n"
|
||||
"\n"
|
||||
" :arg integration_type: An integration method.\n"
|
||||
" :type integration_type: :class:`IntegrationType`\n";
|
||||
|
||||
Reference in New Issue
Block a user