Fix #8594: autodoc: empty __all__ attribute is ignored

An empty `__all__` should be represented as "there is no public items".
But autodoc considers all items on the module are public.  This changes
the behavior to correct one.
This commit is contained in:
Takeshi KOMIYA
2020-12-27 12:04:12 +09:00
parent b19bce971e
commit 0d84818739
4 changed files with 45 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
"""
docsting of empty_all module.
"""
__all__ = []
def foo():
"""docstring"""
def bar():
"""docstring"""
def baz():
"""docstring"""