mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#2021: Allow autosummary to respect __all__
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
from os import path # NOQA
|
||||
from typing import Union
|
||||
|
||||
__all__ = [
|
||||
"CONSTANT1",
|
||||
"Exc",
|
||||
"Foo",
|
||||
"_Baz",
|
||||
"bar",
|
||||
"qux",
|
||||
"path",
|
||||
]
|
||||
|
||||
#: module variable
|
||||
CONSTANT1 = None
|
||||
CONSTANT2 = None
|
||||
@@ -48,3 +58,5 @@ class _Exc(Exception):
|
||||
|
||||
#: a module-level attribute
|
||||
qux = 2
|
||||
#: a module-level attribute that has been excluded from __all__
|
||||
quuz = 2
|
||||
|
||||
Reference in New Issue
Block a user