Skip to content

Commit 877388e

Browse files
committed
#17 Bugfix: Let Griffe know about our function return type.
1 parent a760d77 commit 877388e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkdocstrings_handlers/vba/_util.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def find_procedures(code: str) -> Generator[VbaProcedureInfo, None, None]:
162162

163163
docstring_value = "\n".join(uncomment_lines(docstring_lines))
164164

165-
# See https://mkdocstrings.github.io/griffe/usage/#using-griffe-as-a-docstring-parsing-library
165+
# See https://mkdocstrings.github.io/griffe/guide/users/how-to/parse-docstrings/
166166
docstring = Docstring(
167167
value=docstring_value,
168168
parser=Parser.google,
@@ -180,6 +180,7 @@ def find_procedures(code: str) -> Generator[VbaProcedureInfo, None, None]:
180180
for arg in procedure["signature"].args
181181
)
182182
),
183+
returns=procedure["signature"].return_type,
183184
),
184185
)
185186

0 commit comments

Comments
 (0)