I'm trying to document an exception class for a library, and I don't want 
the constructor signature to be included at all.  The exception is intended 
only to be raised by the library; clients might want to catch the 
exception, but shouldn't be constructing new instances.

I'm using Sphinx 4.3.1 with autodoc_class_signature set to 'separated'.  
This causes the signature to be omitted from the class itself, but forces 
the __init__ to be documented.  I tried adding :no-special-members: to the 
autoexception directive, but that didn't have any effect.

Any hints on how to do this with autodoc?  Thanks!


  -Fred

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/df7eaa07-02c5-4ce9-b4a5-84dc2d34b4d2n%40googlegroups.com.

Reply via email to