File: docstrings.google.jinja2

package info (click to toggle)
python-xsdata 24.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,936 kB
  • sloc: python: 29,257; xml: 404; makefile: 27; sh: 6
file content (8 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
1
2
3
4
5
6
7
8
{% set offset = (level + 2) * 4 + 7 -%}
{{ '"""{}"""'.format(obj.help | clean_docstring) }}
{% if obj.has_help_attr %}
Attributes:
{%- for var_name, var_doc in obj | class_params %}
{{ "{}: {}".format(var_name, var_doc) | text_wrap(offset) | indent(first=True) }}
{%- endfor -%}
{%- endif %}