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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -