Shows special methods as the python syntax that invokes them
This module renders docs like
.. method:: __add__(other)
Docstring
as
- self other
- Docstring
After installing this module, add the following to your conf.py to enable it
extensions = [
... # your other extensions
'sphinxcontrib.prettyspecialmethods',
]