When adding the docstring to my function, the params are show twice in the documentation.
I’m using reStructuredText.
This is the code I have:
<code>def get_table_columns(self, name, names_only):
"""
:param name:
:param names_only:
:return:
"""
</code>
<code>def get_table_columns(self, name, names_only):
"""
:param name:
:param names_only:
:return:
"""
</code>
def get_table_columns(self, name, names_only):
"""
:param name:
:param names_only:
:return:
"""
This is the documentation result:
Why does this happen?