{% if module.name == "__init__" %}Package{% else %}Module{% endif %} {{ display_module_name }}
{% if module.docstring %}{{ module.docstring | safe }}
{% endif %}
{% if module.classes %}
Classes
{% for class in module.classes %}
class {{ class.name }}{% if class.bases %}({{ class.bases | join(sep=", ") }}){% endif %}:
{% if class.docstring %}
{{ class.docstring | safe }}
{% endif %}
{% if class.functions %}
Methods
{% for func in class.functions %}
{% if func.is_async %}async {% endif %}def {{ func.name }}({{ func.args | join(sep=", ") }}){% if func.return_type %} -> {{ func.return_type }}{% endif %}:
{% if func.docstring %}
{{ func.docstring | safe }}
{% endif %}
Functions
{% for func in module.functions %}
{% if func.is_async %}async {% endif %}def {{ func.name }}({{ func.args | join(sep=", ") }}){% if func.return_type %} -> {{ func.return_type }}{% endif %}:
{% if func.docstring %}
{{ func.docstring | safe }}
{% endif %}