sphinxcontrib-prettyspecialmethods 0.1.0


pip install sphinxcontrib-prettyspecialmethods

  Latest version

Released: Jun 21, 2020


Meta
Author: Thomas Smith
Maintainer: Eric Wieser

Classifiers

Development Status
  • 3 - Alpha

Environment
  • Console
  • Web Environment

Framework
  • Sphinx :: Extension

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.6
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9

Topic
  • Documentation
  • Documentation :: Sphinx
  • Utilities
https://travis-ci.org/sphinx-contrib/prettyspecialmethods.svg?branch=master

Shows special methods as the python syntax that invokes them

Overview

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',
]
No dependencies