8000 fix: Fix rendering of signature return annotation · mkdocstrings/python@b92ba3b · GitHub
[go: up one dir, main page]

Skip to content

Commit b92ba3b

Browse files
committed
fix: Fix rendering of signature return annotation
Issue #4: #4
1 parent 7009637 commit b92ba3b

File tree

1 file changed

+1
-1
lines changed
  • src/mkdocstrings_handlers/python/templates/material/_base

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/signature.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{%- endif -%}
3939
{%- endfor -%}
4040
)
41-
{%- if config.show_signature_annotations and "return_annotation" in signature %} -> {{ signature.return_annotation }}{%- endif -%}
41+
{%- if config.show_signature_annotations and function.annotation %} -> {{ function.annotation }}{%- endif -%}
4242

4343
{%- endwith -%}
4444
{%- endif -%}

0 commit comments

Comments
 (0)
0