8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
None
1 parent 04dd092 commit 3d8724eCopy full SHA for 3d8724e
src/mkdocstrings_handlers/python/templates/material/_base/signature.html
@@ -55,7 +55,10 @@
55
{%- endif -%}
56
{%- endfor -%}
57
)
58
- {%- if config.show_signature_annotations and function.annotation %} -> {% if config.separate_signature and config.signature_crossrefs -%}
+ {%- if config.show_signature_annotations
59
+ and function.annotation
60
+ and not (config.merge_init_into_class and function.name == "__init__" )
61
+ %} -> {% if config.separate_signature and config.signature_crossrefs -%}
62
{%- with expression = function.annotation %}{% include "expression.html" with context %}{%- endwith -%}
63
{%- else -%}
64
{{ function.annotation|safe }}
0 commit comments