How to document nested classes with Sphinx's autodoc?

后端 未结 1 1050
北海茫月
北海茫月 2020-12-11 07:39

Is there any way to document a nested class with Sphinx\'s autodoc plugin?

In:

class A:
    class B:
    \"\"\"
    class B\'s documentation.
    \"\         


        
相关标签:
1条回答
  • 2020-12-11 08:02

    Try:

    .. autoclass:: package.module::A.B

    Source: https://groups.google.com/forum/#!topic/sphinx-users/IL5V7HR1ZYE

    0 讨论(0)
提交回复
热议问题