Skip to content

Commit b34ead0

Browse files
committed
fix: Fix signature template (parameters annotations)
1 parent 6b585a9 commit b34ead0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{%- set ns.render_kw_only_separator = False %}*, {% endif -%}
1818
{%- endif -%}
1919

20-
{%- if config.show_signature_annotations and "annotation" in parameter -%}
20+
{%- if config.show_signature_annotations and parameter.annotation is not none -%}
2121
{%- set annotation = ": " + parameter.annotation|safe -%}
2222
{%- endif -%}
2323

0 commit comments

Comments
 (0)