Skip to content

Commit

Permalink
fix: Fix Google sections titles logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 13, 2021
1 parent 127a6cc commit 87dd329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/docstrings/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,13 @@ def parse( # noqa: WPS231
DocstringSection(
DocstringSectionKind.text,
"\n".join(current_section).rstrip("\n"),
title=groups["title"],
)
)
current_section = []
reader = _section_reader[_section_kind[admonition_type]]
section, index = reader(docstring, index + 1)
if section:
section.title = groups["title"]
sections.append(section)

else:
Expand Down

0 comments on commit 87dd329

Please sign in to comment.