简体   繁体   中英

Exclude __init__ parameters in sphinx autoclass output

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

要回答我自己的问题,请在类名称中添加(),例如

.. autoclass:: MyClass()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM