Skip to content

Commit

Permalink
refactor: Never show full path in separate signature since it would a…
Browse files Browse the repository at this point in the history
…ppear in the heading already
  • Loading branch information
pawamoy committed Aug 24, 2023
1 parent 35eb811 commit 9e02049
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{% if config.separate_signature %}
{% filter highlight(language="python", inline=False) %}
{% filter format_code(config.line_length) %}
{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}
{{ attribute.name }}
{% if attribute.annotation %}: {{ attribute.annotation|safe }}{% endif %}
{% if attribute.value %} = {{ attribute.value|safe }}{% endif %}
{% endfilter %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% if "__init__" in class.members %}
{% with function = class.members["__init__"] %}
{% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %}
{% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
{{ class.name }}
{% endfilter %}
{% endwith %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{% block signature scoped %}
{% if config.separate_signature %}
{% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %}
{% if show_full_path %}{{ function.path }}{% else %}{{ function.name }}{% endif %}
{{ function.name }}
{% endfilter %}
{% endif %}
{% endblock signature %}
Expand Down

0 comments on commit 9e02049

Please sign in to comment.