autodoc - How to stop Sphinx automethod prefixing method name with class name -
when use sphinx automethod document specific method so:
.. automethod:: my_module.myclass.my_method
the resulting docs append class name method name this:
myclass.my_method(kwarg1=none, kwarg2=none) docstring my_method...
is there way tell automethod not prefix method name class name, such resulting docs this:
my_method(kwarg1=none, kwarg2=none) docstring my_method...
?
add line in conf.py
file
add_module_names = false
Comments
Post a Comment