mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
16
tests/roots/test-ext-autodoc/target/empty_all.py
Normal file
16
tests/roots/test-ext-autodoc/target/empty_all.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
docsting of empty_all module.
|
||||
"""
|
||||
__all__ = []
|
||||
|
||||
|
||||
def foo():
|
||||
"""docstring"""
|
||||
|
||||
|
||||
def bar():
|
||||
"""docstring"""
|
||||
|
||||
|
||||
def baz():
|
||||
"""docstring"""
|
||||
Reference in New Issue
Block a user