File tree 1 file changed +4
-4
lines changed
src/mkdocstrings_handlers/python/templates/material/_base
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
)
12
12
-%}
13
13
14
- {%- if config.show_signature_annotations -%}
15
- {%- set ns.equal = " = " -%}
16
- {%- endif -%}
17
-
18
14
(
19
15
{%- for parameter in function.parameters -%}
20
16
{%- if parameter.name not in ("self", "cls") or loop.index0 > 0 or not (function.parent and function.parent.is_class) -%}
31
27
{%- endif -%}
32
28
33
29
{%- if config.show_signature_annotations and parameter.annotation is not none -%}
30
+ {%- set ns.equal = " = " -%}
34
31
{%- if config.separate_signature and config.signature_crossrefs -%}
35
32
{%- with expression = parameter.annotation -%}
36
33
{%- set ns.annotation -%}: {% include "expression.html" with context %}{%- endset -%}
37
34
{%- endwith -%}
38
35
{%- else -%}
39
36
{%- set ns.annotation = ": " + parameter.annotation|safe -%}
40
37
{%- endif -%}
38
+ {%- else -%}
39
+ {%- set ns.equal = "=" -%}
40
+ {%- set ns.annotation = "" -%}
41
41
{%- endif -%}
42
42
43
43
{%- if parameter.default is not none and parameter.kind.value != "variadic positional" and parameter.kind.value != "variadic keyword" -%}
You can’t perform that action at this time.
0 commit comments