{%- if description %}
# {{ description | replace('\n', '\n# ') }}
{%- endif %}
{%- if fields|length > 1 %}
{{ class_name }}: TypeAlias = Union[
{%- for field in fields %}
        '{{ field.name }}',
{%- endfor %}
    ]{% elif fields %}
{{ class_name }}: TypeAlias = {{ fields[0].name }}{% else %}
{{ class_name }}: TypeAlias = {{ base_class }}{% endif %}
