Skip to content

sphinx-contrib/prettyspecialmethods

Repository files navigation

Github Actions status

sphinxcontrib-prettyspecialmethods

Shows special methods as the python syntax that invokes them

Overview

This module renders docs like

.. method:: __add__(other)
    Docstring

as

self + other
Docstring

Installing

Install this fork directly from github:

pip install sphinxcontrib-prettyspecialmethods

After installing this module, add the following to your conf.py to enable it

extensions = [
    ...  # your other extensions
    'sphinxcontrib.prettyspecialmethods',
]

About

Shows special/magic methods in sphinx docs as the python syntax that invokes them

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages