diff --git a/src/atsphinx/helpers/decorators.py b/src/atsphinx/helpers/decorators.py index 6c114ea..27808e8 100644 --- a/src/atsphinx/helpers/decorators.py +++ b/src/atsphinx/helpers/decorators.py @@ -55,9 +55,9 @@ def _restrict_builder(app: Sphinx): ) @functools.wraps(func) - def __only(app: Sphinx): + def __only(app: Sphinx) -> Optional[dict]: app.connect("builder-inited", _restrict_builder) - func(app) + return func(app) return __only