Commit c4506f0 1 parent cea4996 commit c4506f0 Copy full SHA for c4506f0
File tree 1 file changed +5
-5
lines changed
src/mkdocstrings_handlers/python/templates/material/_base
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -72,27 +72,27 @@ Context:
72
72
{% - endif -%}
73
73
74
74
{#- Prepare name. -#}
75
- {% - set param_name -%}
75
+ {% - set param_prefix -%}
76
76
{% - if parameter .kind .value == "variadic positional" -%}
77
77
*
78
78
{% - elif parameter .kind .value == "variadic keyword" -%}
79
79
**
80
80
{% - endif -%}
81
- {{ parameter.name }}
82
81
{% - endset -%}
83
82
84
83
{#- Render parameter name with optional cross-reference to its heading. -#}
84
+ {{ param_prefix }}
85
85
{% - if config .separate_signature and config .parameter_headings and config .signature_crossrefs -%}
86
- {% - filter stash_crossref (length =param_name |length ) -%}
86
+ {% - filter stash_crossref (length =parameter . name |length ) -%}
87
87
{% - with func_path = function .path -%}
88
88
{% - if config .merge_init_into_class and func_path .endswith (".__init__" ) -%}
89
89
{% - set func_path = func_path [:-9] -%}
90
90
{% - endif -%}
91
- <autoref identifier =" {{ func_path }}({{ param_name }})" optional >{{ param_name }}</autoref >
91
+ <autoref identifier =" {{ func_path }}({{ param_prefix }}{{ parameter.name }} )" optional >{{ parameter.name }}</autoref >
92
92
{% - endwith -%}
93
93
{% - endfilter -%}
94
94
{% - else -%}
95
- {{ param_name }}
95
+ {{ parameter.name }}
96
96
{% - endif -%}
97
97
98
98
{#- Render parameter annotation. -#}
You can’t perform that action at this time.
0 commit comments