summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-autodoc/target/private.py
blob: e46344818a780485454ed6f349a8f546f1482cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
def private_function(name):
    """private_function is a docstring().

    :meta private:
    """

def _public_function(name):
    """public_function is a docstring().

    :meta public:
    """


PRIVATE_CONSTANT = None  #: :meta private:
_PUBLIC_CONSTANT = None  #: :meta public:


class Foo:
    #: A public class attribute whose name starts with an underscore.
    #:
    #: :meta public:
    _public_attribute = 47

    #: A private class attribute whose name does not start with an underscore.
    #:
    #: :meta private:
    private_attribute = 11