Files
sphinx/tests/roots/test-ext-autosummary-ext/index.rst
Tim Hoffmann 5871ce266a Add support for short signatures in autosummary (#13172)
This introduces a new ``:signatures:`` option to ``sphinx.ext.autosummary``.
Possible values are:

"long" (*default*):
  same as the current default

"short":
  format functions and classes as ``func()`` if they do not
  have arguments and ``func(…)`` if they do have arguments.

"none":
  replaces the pre-existing ``:nosignatures:`` (which becomes deprecated)

The new functionality here is the "short" option.
This allows to distinguish properties and attributes
from functions and classes without costing a lot of space
for a long signature.
2025-01-29 00:44:09 +00:00

9 lines
101 B
ReStructuredText

.. autosummary::
:signatures: none
:toctree:
dummy_module
underscore_module_
sphinx