File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/mkdocstrings_handlers/python/templates/material/_base Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ classifiers = [
29
29
]
30
30
dependencies = [
31
31
" mkdocstrings>=0.24.2" ,
32
- " griffe>=0.37 " ,
32
+ " griffe>=0.44 " ,
33
33
]
34
34
35
35
[project .urls ]
Original file line number Diff line number Diff line change 29
29
{{ render(expression.slice.elements[0], annotations_path) }}
30
30
{%- elif expression.classname == "ExprAttribute" -%}
31
31
{%- if annotations_path == "brief" -%}
32
- {{ render(expression.last, "brief") }}
32
+ {%- if expression.last.is_enum_value -%}
33
+ {{ crossref(expression.last.parent, "brief") }}.value
34
+ {%- else -%}
35
+ {{ render(expression.last, "brief") }}
36
+ {%- endif -%}
33
37
{%- elif annotations_path == "full" -%}
34
38
{{ render(expression.first, "full") }}
35
39
{%- for element in expression -%}
You can’t perform that action at this time.
0 commit comments