File: docstrings.numpy.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 (12 lines) | stat: -rw-r--r-- 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
{% set offset = (level + 1) * 4 + 7 -%}
{{ '"""{}"""'.format(obj.help | clean_docstring) }}
{% if obj.has_help_attr %}
{{ "Properties" if obj.is_enumeration else "Parameters" }}
----------
{%- for var_name, var_doc in obj | class_params %}
{{ var_name }}
{%- if var_doc %}
{{ var_doc | text_wrap(offset, subsequent_indent="") | indent(width=4, first=True) }}
{%-  endif -%}
{%- endfor -%}
{%- endif %}