mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
So far, autodoc treats a "private" class attribute as a mere attribute. But its name is mangled by python interpreter. This make it unmangled name to be documented expectedly.
12 lines
169 B
Python
12 lines
169 B
Python
class Foo:
|
|
#: name of Foo
|
|
__name = None
|
|
__age = None
|
|
|
|
|
|
class Bar(Foo):
|
|
__address = None
|
|
|
|
#: a member having mangled-like name
|
|
_Baz__email = None
|