I'd like to do very basic documentation of my python3 code with sphinx.
An example piece of my code looks like this:
class MyClass:
"""
Class description
"""
def function1(x, y, z):
"""
function description
"""
pass
and the corresponding part in my index.txt file for sphinx like this:
.. automodule:: code.module_name
.. autoclass:: MyClass
:members:
As a result the documentation is otherwise what I'd expect but the function shows as:
function1(y,z)
function description
instead of the desired
function1(x,y,z)
function description
So to put it in short: How to make sphinx not ignore the first argument of python class methods?
I've searched a good while for an answer to this problem and found no answers that would've helped me overcome it. I appreciate any help.