diff --git a/autoautosummary.py b/autoautosummary.py index 46006f8efe6b..855f6bc2f3ed 100644 --- a/autoautosummary.py +++ b/autoautosummary.py @@ -13,7 +13,7 @@ from sphinx.ext.autosummary import Autosummary, get_documenter from sphinx.locale import __ from sphinx.util import logging -from sphinx.util.inspect import safe_getattr, isstaticmethod +from sphinx.util.inspect import isstaticmethod, safe_getattr # from sphinx.directives import directive logger = logging.getLogger(__name__) @@ -77,7 +77,14 @@ def skip_member(doc, obj: Any, name: str, options, objtype: str) -> bool: @staticmethod def get_members( - doc, obj, typ, options, include_public: list | None = None, signal=False, enum=False, static=False + doc, + obj, + typ, + options, + include_public: list | None = None, + signal=False, + enum=False, + static=False, ): try: if not include_public: @@ -145,10 +152,9 @@ def run(self): ) elif "static_methods" in self.options: rubric_title = "Static Methods" - _, rubric_elems = self.get_members(self.state.document, c, - "method", - self.options, - static=True) + _, rubric_elems = self.get_members( + self.state.document, c, "method", self.options, static=True + ) elif "enums" in self.options: rubric_title = "Enums" _, rubric_elems = self.get_members(