{% import 'keywords.jinja2' as keywords %}
# coding=utf-8
{% if code_model.license_header %}
{{ code_model.license_header }}
{% endif %}
{{ keywords.path_type_checking_imports() }}
{% if clients %}
    {% for client in clients %}
from .{{ client.filename }} import {{ client.name }}  # type: ignore
    {% endfor %}
{% endif %}
{% if not async_mode and code_model.options['package_version']%}
from {{ code_model.get_relative_import_path(serialize_namespace, module_name="_version") }} import VERSION

__version__ = VERSION
{% endif %}

{{ keywords.patch_imports(try_except=True) }}
__all__ = [
    {% for client in clients %}
    {{ keywords.escape_str(client.name) }},
    {% endfor %}
]
{{ keywords.extend_all }}

_patch_sdk()
