# D-Bus XML documentation extension, compatibility gunk for """dbus-doc is a Sphinx extension that provides documentation from D-Bus XML.""" from sphinx.application import Sphinx from sphinx.util.docutils import SphinxDirective from typing import Any, Dict class FakeDBusDocDirective(SphinxDirective): has_content = True required_arguments = 1 def run(self): return [] def setup(app: Sphinx) -> Dict[str, Any]: """Register a fake dbus-doc directive with Sphinx""" app.add_directive("dbus-doc", FakeDBusDocDirective)