Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openapi_python_client/templates/model.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from ..types import UNSET, Unset
{{ relative }}
{% endfor %}

{% for lazy_import in model.lazy_imports %}
{% for lazy_import in model.lazy_imports | sort %}
{% if loop.first %}
if TYPE_CHECKING:
{% endif %}
Expand Down Expand Up @@ -173,7 +173,7 @@ return field_dict

@classmethod
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
{% for lazy_import in model.lazy_imports %}
{% for lazy_import in model.lazy_imports | sort %}
{{ lazy_import }}
{% endfor %}
{% if (model.required_properties or model.optional_properties or model.additional_properties) %}
Expand Down