When I use Sethinx automethod to document a specific method, for example:
.. automethod:: my_module.MyClass.my_method
As a result, the documents add the class name to the method name as follows:
MyClass.my_method(kwarg1=None, kwarg2=None)
This is the docstring for my_method...
Is there a way to tell automethod not the prefix of the method name with the class name, so the resulting documents look like this:
my_method(kwarg1=None, kwarg2=None)
This is the docstring for my_method...
?
source
share