{% import 'macros/macros.j2' as macros %}
{% if not nested %}
+++
title = "{{ cls.name }}"
+++
{% endif %}
```python
class {{ cls.name }}{% if cls.bases %}({{ cls.bases | join(", ") }}){% endif %}:
```

{% if cls.docstring %}
{{ render_docstring(cls.docstring, "markdown") }}
{% endif %}

{% for member in cls.members %}
### {{ member.name | replace("__", "\_\_")}}
{% if member.__class__.__name__ == "Variable" %}
{% if member.docstring %}
{{ render_docstring(member.docstring, "markdown") }}
{% endif %}

```python
{{ member.name }}: {{ member.datatype }} = {{member.value}}
```

{% elif member.__class__.__name__ == "Function" %}
{{ render_function(member, "markdown", nested=true)}}
{% endif %}
{% endfor %}