Skip to content

Commit dbadd1e

Browse files
committed
feat: Release expression modernization feature
1 parent fdaeb48 commit dbadd1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/expression.html.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,7 @@ Context:
166166
{%- endif -%}
167167
{%- endmacro -%}
168168

169+
{%- if config.modernize_annotations and expression is not string -%}
170+
{%- set expression = expression.modernize() -%}
171+
{%- endif -%}
169172
{{ render(expression, config.annotations_path, backlink_type|default("")) }}

0 commit comments

Comments
 (0)