S
S
sallyruthstruik2013-01-17 12:21:37
Python
sallyruthstruik, 2013-01-17 12:21:37

Documentation of hidden class methods in Sphinx

I have a class:

#module main.py:

class A:
    a = 1
    """Переменная a"""

    b = 2
    """Переменная B"""

    def _B(self):
        """Функция _B"""


I do autodocumentation on Sphinx and write to the main file
.. automodule: main
:members:


In this case, it prints only the documentation for the a and b members of the class. If you write
.. automodule: main
:members: _B


then it will output method _B but not properties a and b. How can I display all hidden methods and properties of a class?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question