File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/mkdocstrings/templates/python/material/_base Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 5454 {% include "docstring.html" with context %}
5555 {% endwith %}
5656
57- {% if config.show_source %}
57+ {% if config.show_source and class.source %}
5858 < details class ="quote ">
5959 < summary > Source code in < code > {{ class.relative_filepath }}</ code > </ summary >
6060 {{ class.source|highlight(language="python", linestart=class.lineno, linenums=True) }}
Original file line number Diff line number Diff line change 6262 {% include "docstring.html" with context %}
6363 {% endwith %}
6464
65- {% if config.show_source %}
65+ {% if config.show_source and function.source %}
6666 < details class ="quote ">
6767 < summary > Source code in < code > {{ function.relative_filepath }}</ code > </ summary >
6868 {{ function.source|highlight(language="python", linestart=function.lineno, linenums=True) }}
You can’t perform that action at this time.
0 commit comments