Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 14, 2024
1 parent 7a7ba4f commit 41d606b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions autoautosummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 41d606b

Please sign in to comment.