Reputation: 919
The output generated by the sphinx autoclass directive adds the parameters for __init__ to the end of the class name. Is there any way to tell sphinx to exclude them? I need to document classes that should not be explicitly constructed, so the __init__ parameters are an internal implementation detail that should be omitted from the docs
Upvotes: 2
Views: 1307
Reputation: 919
To answer my own question, add () to the class name, e.g.
.. autoclass:: MyClass()
Upvotes: 6