diff --git a/doq/templates/google/def.txt b/doq/templates/google/def.txt index e387123..1d05aed 100644 --- a/doq/templates/google/def.txt +++ b/doq/templates/google/def.txt @@ -1,9 +1,11 @@ """{{ name }}. +{% if params -%} Args: {%- for p in params %} {{ p.argument }}{% if p.annotation %} ({{ p.annotation }}): {{ p.argument }}{% else %}:{% endif -%} {% endfor %} +{% endif -%} {% if return_type %} Returns: {{ return_type }}: