Skip to content

Commit

Permalink
fix: Don't show None as return annotation of class signatures
Browse files Browse the repository at this point in the history
Issue #85: #85
  • Loading branch information
pawamoy committed Jul 13, 2023
1 parent 04dd092 commit 3d8724e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
{%- endif -%}
{%- endfor -%}
)
{%- if config.show_signature_annotations and function.annotation %} -> {% if config.separate_signature and config.signature_crossrefs -%}
{%- if config.show_signature_annotations
and function.annotation
and not (config.merge_init_into_class and function.name == "__init__" )
%} -> {% if config.separate_signature and config.signature_crossrefs -%}
{%- with expression = function.annotation %}{% include "expression.html" with context %}{%- endwith -%}
{%- else -%}
{{ function.annotation|safe }}
Expand Down

0 comments on commit 3d8724e

Please sign in to comment.