Skip to content

Commit

Permalink
Fix method docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Oct 25, 2024
1 parent 8280cfa commit 530901d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ argument.default.render() -}}
{% endif -%}
{{ ',' -}}
{% if argument.type_annotation in method.type_hint_annotations -%}
{% if argument.type_annotation and argument.type_annotation in method.type_hint_annotations -%}
{{ ' # (' -}}{{ method.type_hint_annotations.index(argument.type_annotation) + 1 -}}{{ ')' -}}
{% endif -%}
{{ '\n' -}}
Expand Down

0 comments on commit 530901d

Please sign in to comment.