{% for i in imports %}
from {{ i[0] }} import {{ i[1] }}
{% endfor %}


{% for schema in schemas %}
{% if schema.type == "TypedDict"%}
class {{ schema.name }}(TypedDict):
{% if schema.fields %}
{% for field in schema.fields %}
    {{ field.name }}: {{ field.type }}
{% endfor %}
{% else %}
    pass
{% endif %}
{% elif schema.type == "Literal" %}
{{ schema.name }} = Literal[
{% for field in schema.fields %}
    "{{ field }}",
{% endfor %}
]
{% endif %}


{% endfor %}
