How to exclude the signature of a class with sphinx autoclass

  autodoc, documentation, python, python-sphinx, sphinx

I have tried

.. autoclass:: ChatCommandHandler()

with no luck to remove the signature, is this possible with an extension to make a custom option like :exclude-signature or something.

my extensions:

extensions = [
    'sphinx.ext.napoleon',
    'sphinx.ext.autodoc',
    'sphinx.ext.intersphinx',
    'exception_hierarchy',
    'attributetable',
    'silence',
    'sphinx_autodoc_typehints'
]

first 3 are ext’s from sphinx, attributetable is a custom ext for a table of attributes and methods, silence ignores warnings about multiple references that don’t even cause an issue and sphinx_autodoc_typehints is https://github.com/agronholm/sphinx-autodoc-typehints

Source: Python Questions

LEAVE A COMMENT